Skip to content

Commit 885cb4e

Browse files
author
hyqooo
committed
ctrl-z doesn't ignore
1 parent e17637b commit 885cb4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int shell_exec(struct tokens *tokens){
132132
setpgid(cpid, 0);
133133
tcsetpgrp(0, cpid);
134134

135-
wait(&status);
135+
waitpid(-1, &status, WUNTRACED);
136136
/* return shell to the foreground */
137137
tcsetpgrp(0, getpid());
138138
} else if (cpid == 0){

0 commit comments

Comments
 (0)