aboutsummaryrefslogtreecommitdiff
path: root/libbb/find_pid_by_name.c
AgeCommit message (Collapse)Author
2006-09-13- fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer
boilerplate. No object code changes.
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2005-10-07- size reduction of pidofBernhard Reutner-Fischer
- fix typo in reverse_pidlist
2005-10-06- add llist_free_one() and llist_free() to libbb; Add a bit of documentation.Bernhard Reutner-Fischer
- change llist_add_to_end as proposed by vodz in http://busybox.net/lists/busybox/2005-September/016411.html - remove unneeded includes, add short boilerplate and copyright to llist.c - move COMM_LEN from find_pid_by_name to libbb.h and use it in procps_status_t - add reverse_pidlist() to find_pid_by_name. Will be needed for pidof.
2005-05-03A patch from Takeharu KATO to update/fix SE-Linux support.Rob Landley
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-08-06Joe.C writes:Eric Andersen
I've reported this bug in April and it still exists in 1.00-pre2. So I made patches for both 0.60.x and 1.00-pre2. The patch is very simple, just use strncmp instead of strcmp. Please apply if it is OK. Here's the procedure to test this problem: Create a executable with very long name, say 'test_1234567890123456' and execute it. Try using 'killall' or 'pidof' to find/kill this program. Without this patch, you can't find the program.
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-07-03Patch from Russell Coker:Eric Andersen
I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox.
2003-05-26Remove cruftEric Andersen
2002-12-05Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notEric Andersen
maintaining it anymore, and it is now terribly out of date. -Erik
2002-10-22Patch last_pach62 from vodz. This patch moves all the /proc parsingEric Andersen
code into libbb so it can be shared by ps, top, etc, saving over 1.5k.
2001-12-06If find_pid_by_name() had an error, it was returning -1, but storingEric Andersen
that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-07-05Fix a stupid thinko, and fix killall to cope with the updatedEric Andersen
find_pid_by_name() interface -Erik
2001-07-05Implement suggestion from Adam Slattery, (don't default to killing closing ↵Eric Andersen
bug #1190.
2001-06-26Make it so we don't segfault when /proc isn't mounted -- guess pid 1...Eric Andersen
-Erik
2001-03-17Patch from Pierre PEIFFER <pierre.peiffer@sxb.bsf.alcatel.fr>Eric Andersen
that copes with the fact that processes may have been swapped out.
2001-03-16Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen
files. Clean up the resulting damage and fix up the makefile. -Erik