aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-01 15:14:01 +0200
committerMattias Andrée <maandree@kth.se>2020-06-01 15:14:01 +0200
commit8be724999873ec2409ab3f36d4247c04ed883873 (patch)
tree48d94eac58d85ae37c3d21861fbe36ed266c81bf
parentImplement some todos (diff)
downloadsctrace-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sctrace.c b/sctrace.c
index 1d8f787..715d0dc 100644
--- a/sctrace.c
+++ b/sctrace.c
@@ -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);