Re: Debugging process launching code
Re: Debugging process launching code
- Subject: Re: Debugging process launching code
- From: Dave Keck <email@hidden>
- Date: Mon, 18 Jul 2011 00:25:06 -1000
> How would you debug a problem like this?
Determine why forkpty() is failing by checking errno; see 'man
forkpty'. Perhaps you aren't closing your file descriptors.
> Are there pitfalls and limitations in process launching that I ought to know about?
Yes, there are limitations on forking; see 'man fork'. You need to
wait on your child processes to have their state cleaned up within the
kernel. Failing to do so will prevent you from forking new processes.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden