[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 03 of 14 v4] libxl: add libxl__forkexec function to libxl_exec
On Tue, 2011-12-13 at 15:14 +0000, Ian Jackson wrote: > > > + * gc: allocation pool > > + * stdinfd, stdoutfd, stderrfd: fds to pass to libxl__exec > > + * args: file to execute and arguments to pass in the following > format > > + * args[0]: file to execute > > + * args[1]: first argument to pass to the called program > > + * ... > > + * args[n-1]: (n-1)th argument to pass to the called program > > + * args[n]: NULL > > IMO all of the above is obvious and should be eliminated. (This is > exactly the kind of "fd is the file descriptor" stuff that I was > complaining about in another recent thread.) The definition of args[0] as the actual executable (or argv0) and the requirement for args[n] == NULL are interesting enough to mention I think (the NULL thing in particular often trips people up). But you could also just reference execvp(3). Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |