spawn.c: s/exit()/_exit()/

This commit is contained in:
Johan Malm 2021-02-15 17:57:20 +00:00
parent 2a7086d9f7
commit d5108e291f

View file

@ -45,11 +45,11 @@ spawn_async_no_shell(char const *command)
grandchild = fork();
if (grandchild == 0) {
execvp(argv[0], argv);
exit(0);
_exit(0);
} else if (grandchild < 0) {
warn("unable to fork()");
}
exit(0);
_exit(0);
default:
break;
}