jilles
460d7b088e
sh: Fix signal messages being sent to the wrong file sometimes.
...
When a foreground job exits on a signal, a message is printed to stdout
about this. The buffer was not flushed after this which could result in the
message being written to the wrong file if the next command was a builtin
and had stdout redirected.
Example:
sh -c 'kill -9 $$'; : > foo; echo FOO:; cat foo
Reported by: gcooper
MFC after: 1 week
2011-01-18 21:18:31 +00:00
..
2009-10-15 18:17:29 +00:00
2010-10-08 12:40:16 +00:00
2010-06-02 09:34:41 +00:00
2009-09-02 05:26:59 +00:00
2010-06-05 08:50:39 +00:00
2010-12-04 10:11:20 +00:00
2010-06-04 06:56:58 +00:00
2009-01-30 16:23:57 +00:00
2009-06-23 23:30:56 +00:00
2006-12-18 15:45:01 +00:00
2010-11-12 22:43:40 +00:00
2010-03-04 16:08:01 +00:00
2010-09-09 21:59:53 +00:00
2010-06-11 06:04:07 +00:00
2009-06-23 23:30:56 +00:00
2009-12-29 08:45:07 +00:00
2010-12-21 22:47:34 +00:00
2010-07-31 21:09:49 +00:00
2010-03-28 13:16:08 +00:00
2006-12-27 11:28:00 +00:00
2009-09-04 21:49:37 +00:00
2010-08-29 12:17:16 +00:00
2010-07-12 01:58:46 +00:00
2011-01-09 12:50:44 +00:00
2010-04-14 19:08:06 +00:00
2010-03-28 13:16:08 +00:00
2008-03-09 12:46:39 +00:00
2010-10-31 19:16:54 +00:00
2010-02-15 14:07:40 +00:00
2006-12-27 12:14:56 +00:00
2011-01-03 17:17:31 +00:00
2011-01-18 21:18:31 +00:00
2010-08-02 10:59:23 +00:00
2010-11-02 17:00:56 +00:00
2010-11-08 23:15:10 +00:00
2009-10-15 18:17:29 +00:00
2010-09-13 01:29:51 +00:00
2006-03-17 18:54:44 +00:00