Exit if execv fails (forgotten to commit)
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -315,6 +315,7 @@ action_exec (FILE *tty, int line, int argc, char **argv) | ... | @@ -315,6 +315,7 @@ action_exec (FILE *tty, int line, int argc, char **argv) |
315 | fclose (tty); | 315 | fclose (tty); |
316 | execv (argv[0], argv); | 316 | execv (argv[0], argv); |
317 | syslog (LOG_ERR, "can't execute %s: %s", argv[0], strerror (errno)); | 317 | syslog (LOG_ERR, "can't execute %s: %s", argv[0], strerror (errno)); |
318 | exit (0); | ||
318 | } | 319 | } |
319 | } | 320 | } |
320 | 321 | ... | ... |
-
Please register or sign in to post a comment