Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 1997 19:59:41 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@FreeBSD.org, cvs-all@FreeBSD.org, CVS-committers@FreeBSD.org, cvs-usrbin@FreeBSD.org
Subject:   Re: cvs commit:  src/usr.bin/vacation vacation.c
Message-ID:  <199704240959.TAA12833@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified:    usr.bin/vacation  vacation.c
>  Log:
>  Better fix: return vfork() again, but remove clobbering fclose()
>  and use _exit() instead of exit()

I think it's better to use fork() except in programs that fork a lot.
Even the simplest use:

	if ((pid = vfork()) == 0)
		execl(...);

is not guaranteed to work (it depends on there being a stack frame and
the compiler not doing anything unusual with it).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704240959.TAA12833>