Browse Source

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

android-5
Fredrik Fornwall 9 years ago
parent
commit
6a4a91455d
  1. 1
      packages/procps/build.sh
  2. 12
      packages/procps/pgrep.c.patch

1
packages/procps/build.sh

@ -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}

12
packages/procps/pgrep.c.patch

@ -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);
Loading…
Cancel
Save