On Mon, Nov 03, 2008 at 03:06:58AM +0100, Roland Mainz wrote: > What about the following API:
I hinted at this when I suggested, tongue-in-cheek, that NUL would be a better argument separator than \377. I think a varargs approach would be easier to use. In fact, all we really need is a varages version of posix_spawn(), plus a varargs utility wrapper for the most common usage case. > |child_returncode| points to the child process's return code (this is > seperated here to avoid the mess of dismanteling the value via macros > etc.). The pointer may be |NULL| Yes, this is nice, if you want to wait synchronously (not waiting if often useful too. BTW, a safer variant of popen(3C) would be nice too. Nico --