Skip to content

Commit

Permalink
sort: use noted(NDFLT) in note handler
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rsc committed Jun 1, 2008
1 parent b9ed1df commit e22c0f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down

0 comments on commit e22c0f6

Please sign in to comment.