mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-28 16:17:51 +01:00
init: add failed to start message
This commit is contained in:
@@ -49,9 +49,11 @@ int main() {
|
||||
} else if (strcmp(line, "tasks") == 0) {
|
||||
print_tasks();
|
||||
} else {
|
||||
if (fork() == 0)
|
||||
if (fork() == 0) {
|
||||
execve(line, 0, 0);
|
||||
else
|
||||
printf("Failed to start: %s\n", line);
|
||||
return 0;
|
||||
} else
|
||||
wait(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user