Re: HUP doesn't send to processes when logout

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

 



> Because while a logout doesn't send a HUP unless huponexit is set, it
> DOES send a TERM signal which should terminate child processes.  You

No. It seems if I didn't set huponexit, logout won't send either "HUP" or
"TERM" to the background process. The process will keep running, like a
daemon after the logout. But if I set the huponexit, logout will kill the
background process with some other signals, they are not HUP or
TERM.

If I sent HUP to the session leader of the control terminal (the bash
I think, and
it didn't set huponexit), the bash will quit. Before that, the bash
will first send
HUP to the background process and then send another signal other than
TERM to kill it.

I think the "HUP" means the terminal maybe broken, so bash will signal
each of its child to
quit. But only logout it won't signal children.

> need to trap that signal as well or use a "disown" on the PID of the
> child process to disassociate it from the login shell.

Thank you for pointing out the "disown".

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux