There is no need to strdup anything before calling exec (or exit, of
course).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dup2(st->out,1);
setsid();
dup2(st->out,1);
setsid();
- /* XXX We really should strdup() all of argv[] but because we'll just
- exit anyway if execvp() fails it doesn't seem worth bothering. */
execvp(st->path,(char *const*)st->argv);
perror("userv-entry: execvp()");
exit(1);
execvp(st->path,(char *const*)st->argv);
perror("userv-entry: execvp()");
exit(1);