On Fri, 15 Apr 2011, Mike Frysinger wrote:
The sole purpose of vfork is to immediately invoke exec() Any other
purpose is forbidden. In what case would an exit even be required?
ignoring the fact that Linux allows many many more things to safely happen in
the child of a vfork, what exactly are you supposed to do when that exec fails
and returns ? or you pray it never does ?
Apparently I would pray. Of course exec could fail and it is
then necessary to invoke _exit(2).
This was a temporary brain malfunction on my part. All better now.
Regardless, using posix_spawn() or posix_spawnp() is a better solution
now if one does not need the full-fledged fork().
Bob
--
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf