different behaviour on fbsd and linux
xdivac02 at stud.fit.vutbr.cz
Sat Feb 18 09:39:16 PST 2006
On Sat, Feb 18, 2006 at 06:21:52PM +0100, joerg at britannica.bec.de wrote:
> 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.
> execl("/bin/ls", "/bin/ls", NULL);
> is what you want to do.
ah.. thnx.. the man page should be updated with "he
first argument, by convention, should point to the file name associated
with the file being executed."
More information about the freebsd-hackers