sh: If fork() fails, show an error containing fork

This commit is contained in:
apio 2022-10-26 17:13:47 +02:00
parent 9b1e50ae27
commit 0bad662c2f

View File

@ -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;