LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2012, 10:34 AM   #1
eenduiker
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Which Linux (Debian) Process Flag Number are there


Hi there,

I am reading in the Debian Squeeze ps man page that the only Process Flag numbers available on the distro is 1 and 4 or a summation there of. Is this really true that there is so little process flags on Debian?

I looked on my OSX unix install and there are many!

Why does some processes report a flag number of 0 if it is not listed in the man page? I would appreciate it if someone would point me to a clear definition of what Process Flag Numbers really are.

Thanks!
 
Old 09-18-2012, 09:57 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,341
Blog Entries: 55

Rep: Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538
Quote:
Originally Posted by eenduiker View Post
I looked on my OSX unix install and there are many!
The BSD part of the kernel that OS runs comes from FreeBSD. The FreeBSD manual page for 'ps' lists 30* Process Flags. Linux 3.5.4 lists 27* PF's.


Quote:
Originally Posted by eenduiker View Post
I am reading in the Debian Squeeze ps man page that the only Process Flag numbers available on the distro is 1 and 4 or a summation there of. Is this really true that there is so little process flags on Debian?
Available to 'ps' you mean. Just like "security" or "stability" aren't the property of some Linux distribution as some would like you to believe, this isn't about Linux distribution or release (well, indirectly) either. Anyway, comparing nfo from the previous two links you see some PF's are related to process management (man section 2, the clone, fork and execve system calls) others have no equivalent ("I am kswapd") and others wouldn't benefit user land by exposing them**.


Quote:
Originally Posted by eenduiker View Post
Why does some processes report a flag number of 0 if it is not listed in the man page?
It has neither PF_SUPERPRIV or PF_FORKNOEXEC set?


Quote:
Originally Posted by eenduiker View Post
I would appreciate it if someone would point me to a clear definition of what Process Flag Numbers really are.
PF's tell the kernel it needs to do something extra (or not) like not mess with init, check privileges before fork()* or process memory requirements*. To make your head explode here's an example of the LKML figuring out how to deal with runaway setuid processes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux process flag 5? TPCD2010 Linux - Newbie 7 03-27-2012 03:05 AM
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 02:48 AM
LXer: Finding The Number Of Open File Descriptors Per Process On Linux And Unix LXer Syndicated Linux News 1 11-25-2009 09:07 AM
bugs red flag and debian varun_33 Linux - Distributions 1 01-11-2005 04:26 PM


All times are GMT -5. The time now is 01:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration