hanging if NFS mounts are not responding.
Default to showing processes in the uninterruptable state (D).
The -z flag no longer affects whether processes in D state are shown.
The -z flag does still toggle whether zombie (Z) processes are shown.
could be used to print information from memory or crash
pidof. Replaced flag with "-d" which allows for a custom
separator to be used between listed PIDs.
Patch supplied by KatolaZ.
It starts as a NULL pointer, then might get set as a pointer to optarg,
then it might get set to point to an argv parameter, then it might have
a string value copied into it, over-writing the original data. We should
not risk over-writing internal variables which might get used for something
else (it's rude and security risk). Set up "when" as its own buffer
that has data from optargs and/or argv copied into it.
Minor code fixes across multiple source files to avoid buffer
overflows, or uninitialized strings.
Closes Debian bugs #815839, #905245 and #890478
Added -f <format> option to pidof program to allow printf
style formating.
Closes Debian bug #571590
Thanks to Philipp Marek for the patch.
displaying output. In this mode pidof simply returns true or false
without displaying PID values.
Updated manual page with new -q (quiet) mode.
Added -h flag for pidof, which was recognized before, but not used.
The -h flag now displays brief usage information for pidof.
approaches are tried in order to prevent warnings from GCC 7 (and newer).
Added includes on Linux for sys/sysmacros.h as the old defines in
the sys/types.h file will be removed in the future.