update to pstree-2.40
This commit is contained in:
parent
66297e5ca6
commit
ead0c6e48d
|
@ -1,21 +1,19 @@
|
||||||
COMMENT = list processes as a tree
|
COMMENT = list processes as a tree
|
||||||
DISTNAME = pstree-2.39
|
|
||||||
|
GH_ACCOUNT = FredHucht
|
||||||
|
GH_PROJECT = pstree
|
||||||
|
GH_TAGNAME = v2.40
|
||||||
|
|
||||||
CATEGORIES = sysutils
|
CATEGORIES = sysutils
|
||||||
HOMEPAGE = http://www.thp.uni-duisburg.de/pstree/
|
|
||||||
REVISION = 0
|
|
||||||
|
|
||||||
# GPL
|
# GPL
|
||||||
PERMIT_PACKAGE = Yes
|
PERMIT_PACKAGE = Yes
|
||||||
|
|
||||||
# uses pledge()
|
# uses pledge()
|
||||||
WANTLIB = c
|
WANTLIB = c
|
||||||
|
|
||||||
MASTER_SITES = ftp://ftp.thp.uni-duisburg.de/pub/source/
|
|
||||||
|
|
||||||
NO_TEST = Yes
|
NO_TEST = Yes
|
||||||
|
|
||||||
WRKDIST = ${WRKDIR}
|
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
cd ${WRKBUILD} && ${CC} ${CFLAGS} -o pstree pstree.c
|
cd ${WRKBUILD} && ${CC} ${CFLAGS} -o pstree pstree.c
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (pstree-2.39.tar.gz) = fJvDtD7m+TqbwFTu/x550woBysE9+BDilT4/wkrYR58=
|
SHA256 (pstree-2.40.tar.gz) = ZNYT2PZmhbKfE6gOCM3cCGFs8+MVoGksu/neDYqjdrM=
|
||||||
SIZE (pstree-2.39.tar.gz) = 12929
|
SIZE (pstree-2.40.tar.gz) = 25698
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
--- pstree.c.orig Wed May 13 14:24:47 2015
|
Index: pstree.c
|
||||||
+++ pstree.c Thu Apr 21 08:23:00 2016
|
--- pstree.c.orig
|
||||||
@@ -77,7 +77,7 @@ extern getargs(struct ProcInfo *, int, char *, int);
|
+++ pstree.c
|
||||||
* (Net|Open|Free)BSD & Darwin merged by Ralf Meyer <ralf AT thp.Uni-Duisburg.DE>
|
@@ -75,7 +75,7 @@ extern getargs(struct ProcInfo *, int, char *, int);
|
||||||
|
* DragonFlyBSD contributed by Krzysztof Piecuch <piecuch AT kpiecuch.pl>
|
||||||
*/
|
*/
|
||||||
# define HAS_PGID
|
# define HAS_PGID
|
||||||
-# define PSCMD "ps -axwwo user,pid,ppid,pgid,command"
|
-# define PSCMD "ps -axwwo user,pid,ppid,pgid,command"
|
||||||
|
@ -9,12 +10,10 @@
|
||||||
# define PSFORMAT "%s %ld %ld %ld %[^\n]"
|
# define PSFORMAT "%s %ld %ld %ld %[^\n]"
|
||||||
# define PSVARS P[i].name, &P[i].pid, &P[i].ppid, &P[i].pgid, P[i].cmd
|
# define PSVARS P[i].name, &P[i].pid, &P[i].ppid, &P[i].pgid, P[i].cmd
|
||||||
# define PSVARSN 5
|
# define PSVARSN 5
|
||||||
@@ -872,7 +872,12 @@ int main(int argc, char **argv) {
|
@@ -899,6 +899,11 @@ int main(int argc, char **argv) {
|
||||||
#ifdef ZOMBIES_HAVE_PID_0
|
FixParentCycle();
|
||||||
FixZombies();
|
#endif
|
||||||
#endif
|
|
||||||
-
|
|
||||||
+
|
|
||||||
+ if (pledge("stdio getpw proc tty", NULL) == -1) {
|
+ if (pledge("stdio getpw proc tty", NULL) == -1) {
|
||||||
+ fprintf(stderr, "%s: pledge\n", Progname);
|
+ fprintf(stderr, "%s: pledge\n", Progname);
|
||||||
+ exit(1);
|
+ exit(1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user