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:
Jesse Smith 2019-05-25 15:41:57 -03:00
parent cc464b1189
commit df1aec8981
3 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,8 @@ sysvinit (2.95) unreleased; urgency=low
with do_msleep(), provided by Serge Belyshev.
* Replaced hardwired sleep constants in init.c with
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

View File

@ -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
.BR readlink (2),
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
.BR shutdown (8),

View File

@ -954,7 +954,7 @@ void pidof_usage(void)
printf(" -o <pid> Omit results with a given PID\n");
printf(" -q Quiet mode. Do not display output\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");
}