Re: sysctl kern.maxproc help needed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Keith Richardson
Date: Tuesday, May 1, 2007 - 5:44 pm

Daniel Ouellet wrote:
You are confusing user group (i.e. www) with process group (i.e. logical 
grouping of processes for job contol, etc..). 

obsdev $ id -g 
1000
obsdev $ ps -o pid,gid,pgid,command
  PID   GID  PGID COMMAND
31803  1000 31803 -ksh (ksh)
21293  1000 21293 ps -o pid
31754  1000 26374 (netstat)
26374  1000 26374 /bin/sh /usr/local/bin/firefox
 7853  1000 26374 /bin/sh /usr/local/mozilla-firefox/run-mozilla.sh 
/usr/local/mozilla-firefox/run-mozilla.sh
30367  1000 26374 /usr/local/mozilla-firefox/firefox-bin
30089  1000 26374 /usr/local/libexec/gconfd-2 12
 1501  1000  1501 /bin/sh /usr/local/bin/thunderbird
14044  1000  1501 /bin/sh /usr/local/mozilla-thunderbird/run-mozilla.sh 
/usr/local/mozilla-thunderbird/run-mozilla.sh
29898  1000  1501 /usr/local/mozilla-thunderbird/thunderbird-bin
 6987  1000  6987 -ksh (ksh)
 1708  1000  1708 -ksh (ksh)
12309  1000 12309 -ksh (ksh)


See ps(1) and termios(4)

note: termios had the most descriptive explanation of process group 
under Job Control that I could find in a few minutes.  There probably is 
a better man page.

I do not know a way to find process group without forking.  An 
alternative (if you could not determine process ID) desperation move 
would be kill -1 as root (it should not kill system processes according 
to kill(2))


-Keith
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sysctl kern.maxproc help needed, Daniel Ouellet, (Tue May 1, 3:32 pm)
Re: sysctl kern.maxproc help needed, Ted Unangst, (Tue May 1, 4:07 pm)
Re: sysctl kern.maxproc help needed, Daniel Ouellet, (Tue May 1, 4:15 pm)
Re: sysctl kern.maxproc help needed, Ted Unangst, (Tue May 1, 4:37 pm)
Re: sysctl kern.maxproc help needed, Daniel Ouellet, (Tue May 1, 4:49 pm)
Re: sysctl kern.maxproc help needed, Stuart Henderson, (Tue May 1, 5:00 pm)
Re: sysctl kern.maxproc help needed, Stuart Henderson, (Tue May 1, 5:03 pm)
Re: sysctl kern.maxproc help needed, Daniel Ouellet, (Tue May 1, 5:06 pm)
Re: sysctl kern.maxproc help needed, Daniel Ouellet, (Tue May 1, 5:16 pm)
Re: sysctl kern.maxproc help needed, Joachim Schipper, (Tue May 1, 5:24 pm)
Re: sysctl kern.maxproc help needed, Keith Richardson, (Tue May 1, 5:44 pm)
Re: sysctl kern.maxproc help needed, Daniel Ouellet, (Tue May 1, 6:02 pm)