projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bug from syscall overhaul: extra __syscall_ret call for 0-arg syscalls
[musl]
/
arch
/
i386
/
bits
/
wexitstatus.h
diff --git
a/arch/i386/bits/wexitstatus.h
b/arch/i386/bits/wexitstatus.h
index
34a8023
..
591d401
100644
(file)
--- a/
arch/i386/bits/wexitstatus.h
+++ b/
arch/i386/bits/wexitstatus.h
@@
-5,5
+5,6
@@
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFEXITED(s) (!WTERMSIG(s))
#define WIFSTOPPED(s) (((s) & 0xff) == 0x7f)
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFEXITED(s) (!WTERMSIG(s))
#define WIFSTOPPED(s) (((s) & 0xff) == 0x7f)
-#define WIFSIGNALED(s) (!WIFSTOPPED(s) && !WIFEXITED(s))
+#define WIFSIGNALED(s) (((signed char) (((s) & 0x7f) + 1) >> 1) > 0)
+#define WIFCONTINUED(s) ((s) == 0xffff)
#endif
#endif