sh: If fork() fails, show an error containing fork
This commit is contained in:
parent
9b1e50ae27
commit
0bad662c2f
@ -99,7 +99,7 @@ void command_execute(command* cmd)
|
||||
pid_t child = fork();
|
||||
if (child < 0)
|
||||
{
|
||||
perror(cmd->buffer);
|
||||
perror("fork");
|
||||
command_clear(cmd);
|
||||
show_prompt();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user