LinHES Forums
http://forum.linhes.org/

Stupid Question
http://forum.linhes.org/viewtopic.php?f=6&t=16513
Page 1 of 1

Author:  kmkittre [ Fri Sep 14, 2007 12:17 pm ]
Post subject:  Stupid Question

Okay, this is probably a stupid question. but why does "pkill xinit" restart the frontend? Doesn't that just kill a process? What starts it back up?

Author:  khrusher [ Fri Sep 14, 2007 1:05 pm ]
Post subject: 

xinit is a child process of teh startx process.

killing xinit causes startx to .... well 'Start X' :)

Code:
mythtv    3830  3826  0 Sep13 ?        00:00:00 /bin/sh /usr/bin/startx
mythtv    3851  3830  0 Sep13 ?        00:00:00 xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc -auth /home/mythtv/.serverauth.3830

Author:  kmkittre [ Fri Sep 14, 2007 2:02 pm ]
Post subject: 

Cool, thx.

Author:  nigelpearson [ Sun Sep 16, 2007 1:53 am ]
Post subject:  Re: Stupid Question

kmkittre wrote:
why does "pkill xinit" restart the frontend?


Processes have children. xinit starts some stuff, which in turn starts mythfontend.

When you kill the parent process, its children and grandchildren are killed too.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/