mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-02-07 02:24:25 +01:00
utils: fix wait status
This commit is contained in:
@@ -95,7 +95,7 @@ wait_proc(pid_t in, pid_t *out) {
|
||||
int status = -1;
|
||||
if (WIFEXITED(stat)) {
|
||||
status = WEXITSTATUS(stat);
|
||||
} else if (WIFSIGNALED(status)) {
|
||||
} else if (WIFSIGNALED(stat)) {
|
||||
status = WTERMSIG(stat);
|
||||
}
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user