Date: Sat, 18 Feb 2006 18:21:52 +0100 From: joerg@britannica.bec.de To: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: different behaviour on fbsd and linux Message-ID: <20060218172152.GB11874@britannica.bec.de> In-Reply-To: <20060218171718.GA73133@stud.fit.vutbr.cz> References: <20060218171718.GA73133@stud.fit.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
> execl("/bin/ls", NULL);
This is wrong. You must specify arg0 != NULL (POSIX says so) and you
must NULL-terminate the *following* list.
E.g.:
execl("/bin/ls", "/bin/ls", NULL);
is what you want to do.
Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060218172152.GB11874>
