fork inherited lock of open files (XP)

Dominik Jänicke dominik.jaenicke@softec.de
Fri Oct 11 02:53:00 GMT 2002


Hello,

under WinXP fork() inherited lock of open files.

Following Scenario:

WinPrg1 open file with lock and exec the bash.
The Bash start "cmd /c start WinPrg2" and exits without wait for WinPrg2.
WinPrg1 close its files.

All files opend by WinProg1 locked (access --> permission denied) until
WinProg2 ends.

Is this a bug in fork() ?

The same Scenario works with WinNt, e.g. access is possible.

cygwin rel-1.3.12-2

MfG
Dominik Jaenicke



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list