login
Header Space

 
 

PID restart numbering

June 27, 2008 - 5:48am
Submitted by Anonymous on June 27, 2008 - 5:48am.
Linux

Hello

there are mechanisms for a kernel module to known when the PID numbering restarts?

Thanks in advance.

refcounted

June 27, 2008 - 2:05pm

struct pid is refcounted, just use get_pid(pid) to get a reference to a pid and be sure it stays valid until put_pid(pid), even if the number gets reused.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary