tadd core dump and signal to status line - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 99834d136f84b9ddb216d9e20f22c608f87a3a39
 (DIR) parent 012a8a02d5e43c1d4698acf42da61f4429c3ac1f
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 22 Oct 2004 17:11:47 +0000
       
       add core dump and signal to status line
       
       Diffstat:
         M src/lib9/await.c                    |       3 +--
       
       1 file changed, 1 insertion(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/lib9/await.c b/src/lib9/await.c
       t@@ -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);
                        }