LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2009, 09:58 AM   #1
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
Gnome/gdm startup apps: Why are some children of gdm and others children of init?


I am curious to know why some of the applications listed in the gnome 'Startup applications' are children of x-session-manager and others have the init task (PID #1) as the parent PID:

Code:
/usr/sbin/gdm
root      4106  4101  0 10:30 ?        00:00:00     /usr/sbin/gdm
root      4111  4106 13 10:30 tty7     00:01:47       /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
1000      5054  4106  0 10:30 ?        00:00:00       x-session-manager
1000      5315  5054  0 10:30 ?        00:00:00         /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute x-session-manager
1000      5364  5054  0 10:30 ?        00:00:00         /usr/bin/seahorse-agent --execute x-session-manager
1000      5608  5054  0 10:30 ?        00:00:04         /usr/bin/metacity
1000      5610  5054  1 10:30 ?        00:00:10         gnome-panel
1000      5612  5054  0 10:30 ?        00:00:00         gnome-volume-control-applet
root      5613  5054  0 10:30 ?        00:00:02         /usr/sbin/firestarter --start-hidden
1000      5614  5054  0 10:30 ?        00:00:00         gksu gnome-system-log
root      5627  5614  0 10:30 ?        00:00:04           gnome-system-log
1000      5615  5054  0 10:30 ?        00:00:01         python /usr/bin/hp-systray
1000      6023  5615  0 10:31 ?        00:00:00           python /usr/bi/hp-systray
1000      6025  6023  0 10:31 ?        00:00:00             python /usr/bin/hp-systray
1000      5618  5054  0 10:30 ?        00:00:00         gnome-power-manager
1000      5620  5054  0 10:30 ?        00:00:00         update-notifier
1000      5621  5054  0 10:30 ?        00:00:00         kerneloops-applet
1000      5622  5054  1 10:30 ?        00:00:10         nautilus -n
...
<*snip*>
...
1000      5603     1  0 10:30 ?        00:00:01   gnome-keyring-daemon --start
1000      5625     1  0 10:30 ?        00:00:00   /usr/lib/bonobo-activation/bonobo-activation-server --ac-activate --ior-output-fd=18
1000      5628     1  0 10:30 ?        00:00:00   /usr/lib/gnome-volume-manager/gnome-volume-manager --sm-disable
I just noticed this after reinstalling 'gnome-volume-manager', which has an entry that specifies '--sm-disable' (don't connect to session manager). Other apps like
pulseaudio and gnome-keyring-daemon are standalone daemons, so that would explain them not being children of the session manager.

I guess I would like to understand the whole process of gnome starting the startup apps from the standpoint of OS process creation (fork w/wout exec, clone, etc.) and
session management.
 
Old 07-04-2009, 10:48 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello sixerjman

How about this for a plausible hypothesis?

It's set up that way to provide automatic process termination on various events:
  • children of PID 1 are daemons (a.k.a servers) that should terminate on system shutdown.
  • children of gdm should terminate when X terminates.
  • children of gdm-session-manager should terminate when the user session terminates.
Best

Charles
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with GDM (GDM user does not exist error) utkarshrawat Linux - Software 1 09-25-2007 08:39 AM
GDM doesn't work: Authdir /usr/var/gdm does not exist jimhap Linux - Newbie 11 06-08-2007 04:22 PM
Taking GDM out the equation (help with init) mattme Linux - General 1 05-31-2006 12:39 AM
no startup sound in gnome gdm Paxmaster Linux - General 0 02-18-2005 03:39 PM
gdm overwrites /etc/gdm/Session/fluxbox _flaab_ Mandriva 0 12-21-2003 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration