This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fork inherited lock of open files (XP)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]