procps: Fix pkill behaving as pgrep (closes #192)

This commit is contained in:
Fredrik Fornwall 2016-04-12 01:20:42 -04:00
parent fb97d80556
commit 6a4a91455d
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://packages.debian.org/sid/procps
TERMUX_PKG_DESCRIPTION="Utilities that give information about processes using the /proc filesystem"
TERMUX_PKG_VERSION=3.3.11
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_FOLDERNAME=procps-ng-${TERMUX_PKG_VERSION}

View File

@ -0,0 +1,12 @@
diff -u -r ../procps-ng-3.3.11/pgrep.c ./pgrep.c
--- ../procps-ng-3.3.11/pgrep.c 2015-08-09 01:54:54.298117295 -0400
+++ ./pgrep.c 2016-04-12 01:14:09.647108539 -0400
@@ -713,7 +713,7 @@
{NULL, 0, NULL, 0}
};
- if (strstr (program_invocation_short_name, "pkill")) {
+ if (strstr (argv[0], "pkill")) {
int sig;
i_am_pkill = 1;
sig = signal_option(&argc, argv);