projects
/
ttyd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73a8e8
)
utils: fix wait status
author
Shuanglei Tao
<tsl0922@gmail.com>
Sun, 12 May 2019 03:35:54 +0000
(11:35 +0800)
committer
Shuanglei Tao
<tsl0922@gmail.com>
Sun, 12 May 2019 03:35:54 +0000
(11:35 +0800)
src/utils.c
patch
|
blob
|
history
diff --git
a/src/utils.c
b/src/utils.c
index 680518c491ce50e3b570f0405b3d948be131d9c2..1ab185a7af37f7404f955df428f29b0ec1009340 100644
(file)
--- a/
src/utils.c
+++ b/
src/utils.c
@@
-95,7
+95,7
@@
wait_proc(pid_t in, pid_t *out) {
int status = -1;
if (WIFEXITED(stat)) {
status = WEXITSTATUS(stat);
- } else if (WIFSIGNALED(stat
us
)) {
+ } else if (WIFSIGNALED(stat)) {
status = WTERMSIG(stat);
}
return status;