Re: systemd 230 change - KillUserProcesses defaults to yes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/02/2016 01:39 AM, Gerd Hoffmann wrote:
   Hi,

As mentioned, this isn't just about screen, tmux, and nohup (or if
there's any other programs used in a similar context). *Any* command
run with a trailing & is commonly expected to survive logout, usually
from remote shells.

No.  They get SIGHUP when you logout, and the default action for SIGHUP
is to exit.

So if programs want survive logout for whatever reason they have to
change the SIGHUP action to either a signal handler or set it to ignore.

And IMO systemd should continue to allow programs to stay around that
way in case lingering is enabled for the user.

cheers,
   Gerd

What if systemd sent (optionally?) a SIGHUP to the stray processes instead of TERM/KILL? Or do the problematic ones that have been mentioned ignore SIGHUP as well?


--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux