On Thu, Dec 21, 2006 at 03:01:18PM -0800, huy vu wrote:
> Thank to you both, Nacho and Joerg. However I would love to hear why
> the call to exec would fail right after a call to fork(). From
> reading things about vfork() it sounds like its sole purpose is to
> allow people to call exec right after a fork. I just like to
> understand why exec doesn't work well with fork(). Is it because the
> scheduler is not ready or unpredictable after a fork()?

  I think your question may have been misunderstood.

  There is no restriction on when you can call exec().  You can call it
  after both fork() and vfork().

  There is a restriction on what you can call after vfork().  In the
  child of a vfork(), you should only call exec() (or _exit() if exec()
  fails).

  Dave

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to