fork failure patch for cygrunsrv
Hochstedler, Ben (GE Healthcare)
ben.hochstedler@med.ge.com
Sat Jun 17 04:24:00 GMT 2006
fork() can fail when the system runs out of non-interactive heap space
(because there's not enough heap memory to allocate to the launched
process). See:
http://support.microsoft.com/default.aspx?scid=kb;en-us;824422
The attached patch fixes two problems:
1. cygrunsrv doesn't exit when fork returns -1 (failed to
spawn child process)
2. log message doesn't include the proper errno of the
fork failure.
Ben Hochstedler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygrunsrv-forkerr.patch
Type: application/octet-stream
Size: 595 bytes
Desc: cygrunsrv-forkerr.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060617/84b6939c/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list