]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Conditionalise the calls to premsg and postmsg in uxcons.c's
authorSimon Tatham <anakin@pobox.com>
Wed, 18 Apr 2012 06:36:46 +0000 (06:36 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 18 Apr 2012 06:36:46 +0000 (06:36 +0000)
commitf030975da7bb38c196caa936ccf8c33ec8437654
tree4fc96d61b35362c5ed11a519bcfb9dbccf56618b
parent5c743effc0934ed841e68cdec60f96f3337889c1
Conditionalise the calls to premsg and postmsg in uxcons.c's
logevent(), which temporarily turn off the raw mode we've put stderr
into, so that they don't get called if the log_eventlog() call between
them is not _actually_ going to write to stderr.

Fixes a bug in which, if you define a Unix PuTTY saved session which
uses 'plink -nc' as a local proxy command and then run PuTTY
backgrounded from the shell with that session loaded, the subprocess
Plink would get SIGTTOU when it tried to muck about with stderr and
the whole thing would grind to a halt. I'm prepared to consider that
acceptable if Plink _really_ wants to write on standard error, but if
it doesn't, it should just carry on working in the background!

[originally from svn r9462]
unix/uxcons.c