xrmx / bootchart

merge of bootchart-collector and pybootchartgui
GNU General Public License v2.0
233 stars 87 forks source link

Ignore SIGHUP when starting as PID 1 #75

Closed mephi42 closed 7 years ago

mephi42 commented 7 years ago

On my CentOS 7 box, after systemd pid 1 takes over, it does

ioctl("/dev/tty", TIOCNOTTY);

which, according to

http://man7.org/linux/man-pages/man4/tty.4.html

sends SIGHUP to its process group.

bootchart-collector and wait_boot happen to be in this group, and are thus killed, causing data collection to stop.

xrmx commented 7 years ago

Merged, thanks!