summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-08-31pstree finds orphansCraig Small
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>
2012-08-31fuser -m regressionCraig Small
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>
2012-07-28Merge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmiscCraig Small
Conflicts: doc/killall.1 doc/pstree.1
2012-07-28Cleanup man pagesCraig Small
Date uses standard format Authors section removed Copyright header in comments
2012-07-28docs: clean up pstree.1Sami Kerola
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-28docs: clean up prtstat.1Sami Kerola
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-28docs: clean up peekfd.1Sami Kerola
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-28docs: clean up killall.1Sami Kerola
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-28docs: clean up fuser.1Sami Kerola
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-28misc: fix misspell-check warningsSami Kerola
https://github.com/lyda/misspell-check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-20pstree sorts properly on namesCraig Small
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.
2012-06-22Start of test scripts for psmiscCraig Small
2012-06-21Rolled to version 22.19 and fix killall killing allCraig Small
killall would kill all processes with no arguments, was missing an exit
2012-06-17Update po files with last changeCraig Small
2012-06-16Fixed -w usage SFbug:3528478Craig Small
2012-06-16Updated readme and po filesCraig Small
2012-06-16Removed remants of pidofCraig Small
pidof has been in util-linux for a while, but there has been some remaining code in killall which is now removed.
2012-06-16killall max names fixedCraig Small
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
2012-06-16killall assert lifetimeCraig Small
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
2012-06-15Another sed from from same sourceCraig Small
2012-06-11sed uses proper BRECraig Small
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.
2012-06-11Conditional install fuser.1Craig Small
If fuser binary is not installed, don't install fuser man page either
2012-06-11Added AC_CANONICAL_TARGET to configure.acCraig Small
This line gives you target_os which is needed for the hurd dependency lines. Bug-Debian: http://bugs.debian.org/673485
2012-06-02Update configure.ac to 22.17Craig Small
2012-06-02Final 22.17 release changesCraig Small
2012-06-02Updated language filesCraig Small
My thanks again to all the translators for the translation project who work on these translations.
2012-05-20Made rc1 ready for the translatorsCraig Small
2012-05-20pstree displays PGIDsCraig Small
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
2012-05-193 fixes for CygwinCorinna Vinschen
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.
2012-05-19Fake pstree root with kernels with hidepidArkadiusz Miskiewicz
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>
2012-05-19fuser compiles with PIECraig Small
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
2012-05-19Updated PO files ready for distCraig Small
2012-05-19Merge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmiscCraig Small
Conflicts: ChangeLog src/fuser.c
2012-05-19Remove fuser out of target for hurd-i386Samuel Thibault
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>
2012-03-13Use --enable-timeout-stat as well as --enable-timeout-stat=staticWerner Fink
for a static background process which does the final stat system calls Signed-off-by: Werner Fink <werner@suse.de>
2012-03-13Add timeout.c/timeout.h for static background process for doing the stat ↵Werner Fink
system calls Signed-off-by: Werner Fink <werner@suse.de>
2012-03-13Really add ASCII null at command string in add_proc() of pstree.cWerner Fink
Signed-off-by: Werner Fink <werner@suse.de>
2012-03-04Updated changelog to 22.17Craig Small
2012-03-04fuser: Use correct WITH_TIMEOUT_STAT to conditionalize timeout()Guillem Jover
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2012-02-26po file refreshCraig Small
2012-02-26Null terminate some stringsCraig Small
2012-02-10killall: fix potential string overflow [cppcheck]Sami Kerola
[src/killall.c:138]: (warning) scanf without field width limits can crash with huge input data Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-10Better comm_len fixCraig Small
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.
2012-01-27Added hardened CFLAGSCraig Small
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.
2012-01-27Set COMM_LEN to 18 to include brackets in nameCraig Small
Also use strncpy in case the command names grow.
2012-01-27Updated configure.ac to 22.15Craig Small
2012-01-25po file update due to distcheckCraig Small
2012-01-25Updated the language filesCraig Small
2012-01-25Merge branch 'master' of ssh://psmisc.git.sourceforge.net/gitroot/psmisc/psmiscCraig Small
Conflicts: ChangeLog
2012-01-25killall: check fscanf return valueSami Kerola
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>