diff options
author | rsc <devnull@localhost> | 2004-10-22 17:11:47 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-10-22 17:11:47 +0000 |
commit | 99834d136f84b9ddb216d9e20f22c608f87a3a39 (patch) | |
tree | 225b7e768cd0c2c926a2b1023f6d091106d938ab /src | |
parent | 012a8a02d5e43c1d4698acf42da61f4429c3ac1f (diff) | |
download | plan9port-99834d136f84b9ddb216d9e20f22c608f87a3a39.tar.gz plan9port-99834d136f84b9ddb216d9e20f22c608f87a3a39.tar.bz2 plan9port-99834d136f84b9ddb216d9e20f22c608f87a3a39.zip |
add core dump and signal to status line
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/await.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib9/await.c b/src/lib9/await.c index c6c7122c..b7d9265a 100644 --- a/src/lib9/await.c +++ b/src/lib9/await.c @@ -98,8 +98,7 @@ _await(char *str, int n, int opt) } if(WIFSIGNALED(status)){ cd = WCOREDUMP(status); - USED(cd); - snprint(buf, sizeof buf, "%d %lud %lud %lud '%s'", pid, u, s, u+s, _p9sigstr(WTERMSIG(status), tmp)); + snprint(buf, sizeof buf, "%d %lud %lud %lud 'signal: %s%s'", pid, u, s, u+s, _p9sigstr(WTERMSIG(status), tmp), cd ? " (core dumped)" : ""); strecpy(str, str+n, buf); return strlen(str); } |