Commit 9bcb4c72 9bcb4c72fbd5d9da96da87feaf705d4ed6f8f33f by Sergey Poznyakoff

Exit if execv fails (forgotten to commit)

1 parent 775c2f0c
...@@ -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
......