Date: Tue, 18 Jan 2011 21:18:31 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh jobs.c src/tools/regression/bin/sh/execution killed1.0 Message-ID: <201101182119.p0ILJSmE038622@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-01-18 21:18:31 UTC FreeBSD src repository Modified files: bin/sh jobs.c Added files: tools/regression/bin/sh/execution killed1.0 Log: SVN rev 217557 on 2011-01-18 21:18:31Z by jilles 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 Revision Changes Path 1.90 +1 -0 src/bin/sh/jobs.c 1.1 +8 -0 src/tools/regression/bin/sh/execution/killed1.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101182119.p0ILJSmE038622>