Christian Grothoff <[email protected]> writes: > That's intentional. Same as with 'exec'. First argument is the file > name/path to the binary, and argv[0] is separate. See 'exec'. In > general, simply pass the binary name twice. > > -Christian
Thank you for the explanation. Since the documentation simply says "start a process", I thought the argv[0] was implicitly set by the function like some other higher-level libraries/languages do. It's fine if it mimics exec, I was just surprised by this. Thanks, A.V.
