using spawn functions to avoid fork() errors

Steven Bardwell SBardwell@lbmsys.com
Wed Feb 5 12:08:00 GMT 2014


>From reading the Cygwin FAQ ("In most cases, you are better off using the
spawn family of calls if possible.") and
the Cygwin Highlights ("Fortunately, in most circumstances the spawn family
of calls provided by Cygwin can be substituted for a fork/exec pair with
only a little effort."), it sounds like there exists a family of API calls
that
may help me avoid the 'Resource temporarily unavailable' errors from calling
fork().

However, I can't find any documentation on these spawn functions. I recoded
my application to use 
posix_spawn() but I am getting the same 'Resource temporarily unavailable'
error so I suspect that it
is using fork() as well.

I did try the 'rebaseall' process to remove the error, but without any
success. I also checked the BLODA list.

I have no problem doing some recoding of my application to reliably solve my
issues with fork() -- can you all 
point me in the direction of the 'spawn family of calls'?

Steve Bardwell



-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygchedk.out
Type: application/octet-stream
Size: 289863 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140205/599946bc/attachment.obj>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list