1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/unix
Simon Tatham 63d08fc308 uxpty: support SS_SIG* and SS_BRK specials.
The SS_SIGFOO family are implemented by sending a signal directly to
the pid of the immediate child process.

I had had the vague idea that it might be more desirable to send the
specified signal to the foreground process group in the tty. That way,
you'd be able to SIGINT (say) the foreground job in a shell session,
and return to the shell _prompt_ without terminating the whole
session, and you could do this in an emergency even if the job was a
full-screen application which had configured termios so that no
keystroke generated SIGINT.

But as far as I can see there's no actual way to do that. I wasn't
able to find any ioctl or termios call to send a signal to a pty's
foreground pgrp, and you can't even do it manually via kill(2) because
first you'd have to find out what the pgrp id _is_, and according to
the man pages, you can only call tcgetpgrp on the slave end of the pty
and even then only if it's your controlling terminal.

So SS_SIGFOO goes to the child process, because that's the only place
I can find that I _can_ send it to sensibly.

SS_BRK translates to tcsendbreak, of course (though I haven't actually
seen any effect of calling this on a pty master, not even if I set
PARMRK on the slave end which by my understanding _ought_ to show me
when break events occur).
2018-10-21 10:02:10 +01:00
..
configure Move the Unix configure script up to the top level. 2014-02-22 18:01:32 +00:00
gtkapp.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkask.c gtkask: rework the mechanism for keyboard grabs. 2018-05-13 23:05:46 +01:00
gtkcfg.c Expose the structure tag 'dlgparam'. 2018-09-19 23:08:07 +01:00
gtkcols.c Memory leak: add a columns_finalize() method. 2017-11-26 11:36:00 +00:00
gtkcols.h New Columns method, columns_force_same_height(). 2015-08-24 19:34:23 +01:00
gtkcomm.c GTK uxsel handling: lump G_IO_HUP into G_IO_IN. 2018-09-28 19:23:08 +01:00
gtkcompat.h Rework special-commands system to add an integer argument. 2018-09-24 09:43:39 +01:00
gtkdlg.c New abstraction 'Seat', to pass to backends. 2018-10-11 19:58:42 +01:00
gtkfont.c Remove 'defused' parameter from wc_to_mb. 2018-10-06 11:57:59 +01:00
gtkfont.h Name vtable structure types more consistently. 2018-10-06 07:28:51 +01:00
gtkmain.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkmisc.c Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
gtkmisc.h Move more functions into the new gtkmisc.c. 2015-08-31 15:45:43 +01:00
gtkwin.c Change Seat's get_char_cell_size to get_window_pixel_size. 2018-10-21 10:02:10 +01:00
osxlaunch.c osxlaunch: stop setting DYLD_LIBRARY_PATH. 2017-12-20 10:04:02 +00:00
pterm.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
pterm.plist Create OS X application bundles for PuTTY and pterm. 2016-03-23 22:22:48 +00:00
putty.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
putty.plist Create OS X application bundles for PuTTY and pterm. 2016-03-23 22:22:48 +00:00
unix.h Factor out Unix Pageant's socket creation. 2018-10-21 10:02:10 +01:00
ux_x11.c Server prep: routine to create a local X display. 2018-10-21 10:02:10 +01:00
uxagentc.c Build outgoing SSH agent requests in a strbuf. 2018-05-25 14:36:16 +01:00
uxagentsock.c Factor out Unix Pageant's socket creation. 2018-10-21 10:02:10 +01:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c New abstraction 'Seat', to pass to backends. 2018-10-11 19:58:42 +01:00
uxfdsock.c Unix: turn LocalProxySocket into a general FdSocket. 2018-10-21 10:02:10 +01:00
uxgen.c Unix PuTTYgen: switch to /dev/urandom by default. 2018-06-03 15:15:51 +01:00
uxgss.c Support GSS key exchange, for Kerberos 5 only. 2018-04-26 07:21:16 +01:00
uxmisc.c GPG key rollover. 2018-08-25 14:38:47 +01:00
uxnet.c Improve sk_peer_info. 2018-10-21 10:02:10 +01:00
uxnogtk.c Include the compile-time GTK version in the build info. 2017-02-15 19:32:42 +00:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxpeer.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxpgnt.c Server prep: parse a lot of new channel requests. 2018-10-21 10:02:10 +01:00
uxplink.c Change Seat's get_char_cell_size to get_window_pixel_size. 2018-10-21 10:02:10 +01:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Unix: turn LocalProxySocket into a general FdSocket. 2018-10-21 10:02:10 +01:00
uxpterm.c Name vtable structure types more consistently. 2018-10-06 07:28:51 +01:00
uxpty.c uxpty: support SS_SIG* and SS_BRK specials. 2018-10-21 10:02:10 +01:00
uxputty.c Name vtable structure types more consistently. 2018-10-06 07:28:51 +01:00
uxsel.c unix: make select_result() return void. 2017-05-14 16:34:48 +01:00
uxser.c New abstraction 'Seat', to pass to backends. 2018-10-11 19:58:42 +01:00
uxsftp.c New abstraction 'Seat', to pass to backends. 2018-10-11 19:58:42 +01:00
uxshare.c Get rid of #ifdef DEFINE_PLUG_METHOD_MACROS. 2018-10-06 07:28:51 +01:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c Unix: fix segfault if ~/.putty/sessions doesn't exist. 2018-10-07 14:05:53 +01:00
uxucs.c Remove 'defused' parameter from wc_to_mb. 2018-10-06 11:57:59 +01:00
x11misc.c Ignore X11 BadMatch errors during cut buffer setup. 2016-03-20 18:30:03 +00:00
x11misc.h Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00: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