diff options
author | Russ Cox <rsc@swtch.com> | 2008-06-01 08:26:10 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-06-01 08:26:10 -0400 |
commit | e22c0f6f8528b28371d6ce052896027e55b6c64a (patch) | |
tree | a89aef24580a07936964f88f04f00b95b5070922 /src | |
parent | b9ed1df1f6ca71df38a7bd73794bc91870815641 (diff) | |
download | plan9port-e22c0f6f8528b28371d6ce052896027e55b6c64a.tar.gz plan9port-e22c0f6f8528b28371d6ce052896027e55b6c64a.tar.bz2 plan9port-e22c0f6f8528b28371d6ce052896027e55b6c64a.zip |
sort: use noted(NDFLT) in note handler
There are many more random notes flying around
here in Unix-land than there were on Plan 9.
For example, some shells implement "cat file | sort"
with cat as the child of sort, so that when cat exits,
sort gets a "sys: child" note. noted(NDFLT) knows
which signals aren't really important and can be ignored,
and which need to kill the program.
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/sort.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/sort.c b/src/cmd/sort.c index 9606f90f..e5cea294 100644 --- a/src/cmd/sort.c +++ b/src/cmd/sort.c @@ -243,8 +243,7 @@ notifyf(void *a, char *s) done(0); if(strncmp(s, "sys: write on closed pipe", 25) == 0) done(0); - fprint(2, "sort: note: %s\n", s); - abort(); + noted(NDFLT); } Line* |