diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-01 15:14:01 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-01 15:14:01 +0200 |
commit | 8be724999873ec2409ab3f36d4247c04ed883873 (patch) | |
tree | 48d94eac58d85ae37c3d21861fbe36ed266c81bf | |
parent | Implement some todos (diff) | |
download | sctrace-8be724999873ec2409ab3f36d4247c04ed883873.tar.gz sctrace-8be724999873ec2409ab3f36d4247c04ed883873.tar.bz2 sctrace-8be724999873ec2409ab3f36d4247c04ed883873.tar.xz |
Use WCOREDUMP rather than __WCOREDUMP
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | sctrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -257,11 +257,11 @@ main(int argc, char **argv) exit_code = status; if (WIFEXITED(status)) { tprintf(proc, "\nProcess exited with value %i%s\n", WEXITSTATUS(status), - __WCOREDUMP(status) ? ", core dumped" : ""); + WCOREDUMP(status) ? ", core dumped" : ""); } else { tprintf(proc, "\nProcess terminated by signal %i (%s: %s)%s\n", WTERMSIG(status), get_signum_name(WTERMSIG(status)), strsignal(WTERMSIG(status)), - __WCOREDUMP(status) ? ", core dumped" : ""); + WCOREDUMP(status) ? ", core dumped" : ""); } proc2 = proc->continue_on_exit; remove_process(proc); |