Commit Graph

17 Commits

Author SHA1 Message Date
Hiltjo Posthuma 5a06a9f7e1 pidof: match on full name and basename
busybox doesn't do this, but procps does.
2014-07-05 12:00:17 +01:00
sin 1ec0073bb8 Remove entries from TAILQ when free-ing 2014-07-03 14:29:45 +01:00
sin d04d030367 Use EXIT_FAILURE 2014-06-30 19:16:15 +01:00
sin 86060b535c Fix includes across all tools 2014-06-30 19:04:47 +01:00
sin f5ebc6350b Import sys/queue.h and move over existing tools
We should stop rolling data structure implementations in every
tool.
2014-06-30 13:06:07 +01:00
sin 5b9ea69b08 Sweep through code and replace malloc() with emalloc() etc. 2014-04-30 13:12:17 +01:00
sin 892d84ca24 Return an error if we can't open the files in /proc 2014-02-13 12:28:46 +00:00
s-p-k e340e1373e exit with EXIT_SUCCESS/EXIT_FAILURE 2013-10-07 19:15:00 +01:00
sin ff85b15939 Add comment to clarify why we skip '-' in pidof(8) 2013-09-04 13:13:44 +01:00
sin 348f771fec Add missing include for pidof(8) 2013-09-03 15:09:47 +01:00
sin 163a17a835 Ignore leading '-' in command name for pidof(8) 2013-09-02 15:00:59 +01:00
sin c14983072b Fix segfault when arg is uninitialized 2013-09-02 14:58:40 +01:00
sin 3406f87852 Fix usage for pidof(8) 2013-09-02 14:56:35 +01:00
sin 755a96237c Implement -o support for pidof(8) 2013-09-02 16:22:46 +03:00
sin 1927d28990 Add single shot option for pidof(8) 2013-08-31 17:33:45 +01:00
sin 9827789a47 Use BUFSIZ instead of PATH_MAX 2013-08-29 18:43:16 +01:00
sin 6a56bdf4ca Add primitive pidof(8) 2013-08-29 11:11:26 +01:00