simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Aug 16 22:29:08 BST 2021


TL;DR:
  2cb38da6 psusan manpage: suggest setsid in UML example.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2021-08-16 22:29:08

commit 2cb38da6e92bb9e7032f3ff1fdc6e89ced0c459b
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=2cb38da6e92bb9e7032f3ff1fdc6e89ced0c459b;hp=c62b7229c1928f875c77108db50ab356c7f59001
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Aug 16 22:22:55 2021 +0100

    psusan manpage: suggest setsid in UML example.
    
    When UML terminates, it kills its entire process group. The way PuTTY
    invokes proxy processes, they are part of its process group. So if UML
    is used directly as the proxy process, it will commit patricide on
    termination.
    
    Wrapping it in 'setsid' is overkill (it doesn't need to be part of a
    separate _session_, only a separate pgrp), but it's good enough to
    work around this problem, and give PuTTY the opportunity to shut down
    cleanly when the UML it's talking to vanishes.

 doc/man-psusan.but | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)



More information about the tartarus-commits mailing list