Age | Commit message (Collapse) | Author |
|
Commit 26f9b6c1553d021c0bf9dd85f0647dc6e210948d while fixing the missing
root pid problem introduced another problem where PIDs are out of order.
A process that has a lower PID than its PPID would appear twice with
the tree breaking in strange ways.
We now scan the entire process tree first then perform two checks
if PID==1 is missing add it
if a process has no parent, then make it a child of PID==1, either the
real one or the faked one made in step 1
As this is done after all procsses are found, we don't get the previous
breakage.
Ref: https://sourceforge.net/tracker/?func=detail&aid=3537508&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@users.sourceforge.net>
|
|
While fuser -m /boot worked, fuser -m /dev/blah would show everything.
This was because the filesystem for /dev was added as a target, not the
filesystem /dev/blah.
This simple fix suggested by SF user hanpt works well.
Ref: https://sourceforge.net/tracker/?func=detail&aid=3559232&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@users.sourceforge.net>
|
|
Conflicts:
doc/killall.1
doc/pstree.1
|
|
Date uses standard format
Authors section removed
Copyright header in comments
|
|
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
https://github.com/lyda/misspell-check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
pstree added temporary parents to processes, so if a child process
was lexigraphically before the parents or its "aunties and uncles"
then they were sorted with the parent temporary name "?".
This patch reorders the children in the parents list when they
are renamed.
|
|
|
|
killall would kill all processes with no arguments, was missing an exit
|
|
|
|
|
|
|
|
pidof has been in util-linux for a while, but there has been some
remaining code in killall which is now removed.
|
|
The maximum number of names was not documented and was out by one.
Problem reported by J.A. Bezemer
Bug-Debian: http://bugs.debian.org/677428
|
|
Sometimes killall younger-than or older-than would trigger an assert
failure because the process age was too small and was close to zero.
Bug reported and analysed by Frédéric Brière <fbriere@fbriere.net>
Bug-Debian: http://bugs.debian.org/628617
|
|
|
|
Apparently even though [0-9]+ works most of the time, its not proper BRE
and doesn't work ALL of the time. Replacing this with [0-9][0-9]* makes
everyone happy.
Noticed by Rich from the busybox project and reported by John Spencer
of the same project.
|
|
If fuser binary is not installed, don't install fuser man page either
|
|
This line gives you target_os which is needed for the hurd
dependency lines.
Bug-Debian: http://bugs.debian.org/673485
|
|
|
|
|
|
My thanks again to all the translators for the translation project who
work on these translations.
|
|
|
|
Patch based upon a patch submitted by Alan Grow.
The -g flag shows program group IDs, much like the PIDs display.
Bug-Sourceforge:
http://sourceforge.net/tracker/?func=detail&aid=3471056&group_id=15273&atid=315273
|
|
The attached patch fixes three issues of fuser on Cygwin.:
- Cygwin does not support /proc/net/unix. The call to fill_unix_cache
always generates an error message that /proc/net/unix couldn't be
found, so the patch disables the call for Cygwin. An alternative
fix would be to avoid the error message entirely.
- `ls /dev' on Cygwin only lists manually added entries to /dev, not the
default files suported by Cygwin internally. Also,
/proc/$PID/mountinfo doesn't exist up to Cygwin 1.7.11. This
breaks fuser when using the _LISTS_H option.
- If you don't include lists.h, the code in check_dir doesn't work well.
st.st_ino is never set to 0, so the timeout(stat, ...) is never
called. Also, thedev never gets a valid value in this case, but it's
used subsequently for comparisons.
|
|
Kernels that hide pids hide pid=1 which pstree needs to show any
output. If pstree detects this it now makes a "fake" root.
Bug-Sourceforge: https://sourceforge.net/tracker/?func=detail&aid=3509672&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@enc.com.au>
|
|
Some people have reported that fuser, specifically src/lists won't
compile with PIE enabled. This tiny patch fixes it.
Bug-Gentoo: http://bugs.gentoo.org/394443
Bug-Gentoo: http://bugs.gentoo.org/401851
Bug-Sourceforge: https://sourceforge.net/tracker/?func=detail&aid=3504801&group_id=15273&atid=115273
|
|
|
|
Conflicts:
ChangeLog
src/fuser.c
|
|
hurd-i386 does not have PATH_MAX which means fuser won't compile.
However the archtecture cannot use fuser anyway so we now don't
even try to compile it for hurd-i386
Bug-Debian: http://bugs.debian.org/673485
Signed-off-by: Craig Small <csmall@enc.com.au>
|
|
for a static background process which does the final stat system calls
Signed-off-by: Werner Fink <werner@suse.de>
|
|
system calls
Signed-off-by: Werner Fink <werner@suse.de>
|
|
Signed-off-by: Werner Fink <werner@suse.de>
|
|
|
|
Signed-off-by: Guillem Jover <guillem@hadrons.org>
|
|
|
|
|
|
[src/killall.c:138]: (warning) scanf without field width limits can crash with huge input data
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
The previous fix for comm_len broke checks for process exactly the right
length, this one fixes the original problem and doesn't break that
situation.
Added a variable to the conditional STAT code that was previously
outside the #ifdef and gave an unsed variable warning.
|
|
Debian and Ubuntu (at the least) have some CFLAGS that harden the binary
for some typical attacks. psmisc now will have these flags on by default
but checks the compilier supports them.
|
|
Also use strncpy in case the command names grow.
|
|
|
|
|
|
|
|
Conflicts:
ChangeLog
|
|
killall.c:138:10: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
|