Accepted patch from Luc Gommans which explains why zombie and
deep sleep processes (Z and D) may be hidden from pidof
This commit is contained in:
parent
cc464b1189
commit
df1aec8981
@ -17,6 +17,8 @@ sysvinit (2.95) unreleased; urgency=low
|
|||||||
with do_msleep(), provided by Serge Belyshev.
|
with do_msleep(), provided by Serge Belyshev.
|
||||||
* Replaced hardwired sleep constants in init.c with
|
* Replaced hardwired sleep constants in init.c with
|
||||||
defined constants for easy updating in the future.
|
defined constants for easy updating in the future.
|
||||||
|
* Accepted patch from Luc Gommans which explains why zombie and
|
||||||
|
deep sleep processes (Z and D) may be hidden from pidof.
|
||||||
|
|
||||||
|
|
||||||
sysvinit (2.94) released; urgency=low
|
sysvinit (2.94) released; urgency=low
|
||||||
|
@ -89,6 +89,9 @@ as the program you're after but are actually other programs. Note
|
|||||||
that the executable name of running processes is calculated with
|
that the executable name of running processes is calculated with
|
||||||
.BR readlink (2),
|
.BR readlink (2),
|
||||||
so symbolic links to executables will also match.
|
so symbolic links to executables will also match.
|
||||||
|
.PP
|
||||||
|
Zombie processes or processes in disk sleep (states Z and D, respectively)
|
||||||
|
are ignored, as attempts to access the stats of these will sometimes fail.
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR shutdown (8),
|
.BR shutdown (8),
|
||||||
|
@ -954,7 +954,7 @@ void pidof_usage(void)
|
|||||||
printf(" -o <pid> Omit results with a given PID\n");
|
printf(" -o <pid> Omit results with a given PID\n");
|
||||||
printf(" -q Quiet mode. Do not display output\n");
|
printf(" -q Quiet mode. Do not display output\n");
|
||||||
printf(" -s Only return one PID\n");
|
printf(" -s Only return one PID\n");
|
||||||
printf(" -x Return PIDs of shells running scritps with a matchign name\n");
|
printf(" -x Return PIDs of shells running scripts with a matching name\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user