1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/unix
Simon Tatham 426a2048cc pty_backend_create: set up SIGCHLD handler earlier.
Mark Wooding points out that when running with the +ut flag, we close
pty_utmp_helper_pipe during pty backend setup, which causes the
previously forked helper process to terminate. If that termination
happens quickly enough, then the code later in pty_backend_create
won't have set up the SIGCHLD handler and its pipe yet, so when we get
to the main event loop, we'll fail to notice that subprocess waiting
to be reaped, and leave it lying around as a zombie.

An easy fix is to move the handler and pipe setup to before the code
that potentially closes pty_utmp_helper_pipe, so that there isn't a
race condition any more.

(cherry picked from commit 7ffa6ed41e)
2020-06-14 15:49:36 +01:00
..
configure Move the Unix configure script up to the top level. 2014-02-22 18:01:32 +00:00
gtkapp.c Move all extern declarations into header files. 2018-11-03 13:47:29 +00:00
gtkask.c gtkask.c: use dedicated PRNG for initial area choice. 2019-07-23 19:58:48 +01:00
gtkcfg.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcols.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcols.h Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcomm.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcompat.h gtkcompat.h: fix GTK1 implementation of ref_sink. 2019-11-02 08:26:14 +00:00
gtkdlg.c New functions to shrink a strbuf. 2020-02-09 08:51:37 +00:00
gtkfont.c gtkfont: use PANGO_PIXELS_CEIL to work out font metrics. 2020-06-14 15:49:36 +01:00
gtkfont.h Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkmain.c Cope with "delete_window" event on the GTK config box. 2020-06-14 15:49:36 +01:00
gtkmisc.c Convert a lot of 'int' variables to 'bool'. 2018-11-03 13:45:00 +00:00
gtkmisc.h Convert a lot of 'int' variables to 'bool'. 2018-11-03 13:45:00 +00:00
gtkwin.c gtk: fill in missing case in scroll_event(). 2020-06-14 15:49:36 +01:00
osxlaunch.c osxlaunch: stop setting DYLD_LIBRARY_PATH. 2017-12-20 10:04:02 +00:00
procnet.c Add a /proc/net magic authenticator. 2019-03-31 10:35:10 +01:00
pterm.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
pterm.plist Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
putty.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
putty.plist Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
unix.h Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
ux_x11.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
uxagentc.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxagentsock.c Close standard handles in watchdog subprocesses. 2018-10-21 10:16:16 +01:00
uxcfg.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxcons.c Introduce and use strbuf_chomp. 2020-02-09 08:51:37 +00:00
uxfdsock.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxgen.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxgss.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxmisc.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxnet.c New functions to shrink a strbuf. 2020-02-09 08:51:37 +00:00
uxnogtk.c Include the compile-time GTK version in the build info. 2017-02-15 19:32:42 +00:00
uxnoise.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxpeer.c Convert a lot of 'int' variables to 'bool'. 2018-11-03 13:45:00 +00:00
uxpgnt.c uxpgnt --askpass: explicitly fflush(stdout) on exit. 2020-06-14 15:49:36 +01:00
uxplink.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxpoll.c pollwrap: stop returning unasked-for rwx statuses. 2020-06-14 15:49:36 +01:00
uxprint.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxproxy.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxpterm.c Label random-noise sources with an enum of ids. 2019-01-23 22:36:17 +00:00
uxpty.c pty_backend_create: set up SIGCHLD handler earlier. 2020-06-14 15:49:36 +01:00
uxputty.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
uxsel.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxser.c uxser: add a missing uxsel_del. 2020-06-14 15:49:36 +01:00
uxserver.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxsftp.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
uxsftpserver.c Add an autoconf test and workaround for futimes(3). 2019-03-26 18:44:19 +00:00
uxshare.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
uxsignal.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxstore.c New functions to shrink a strbuf. 2020-02-09 08:51:37 +00:00
uxucs.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxutils.c Check for auxv.h and hwcap.h before including them. 2019-03-26 19:19:28 +00:00
x11misc.c New array-growing macros: sgrowarray and sgrowarrayn. 2019-02-28 20:15:38 +00:00
x11misc.h Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
xkeysym.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00