Paul Dufresne, le mar. 02 févr. 2021 12:05:54 -0500, a ecrit: > root@kibar:~/procps-3.3.16# diff -u pgrep.c ../orig/procps-3.3.16/pgrep.c > --- pgrep.c 2021-02-02 11:39:44.000000000 -0500 > +++ ../orig/procps-3.3.16/pgrep.c 2020-02-06 06:04:02.000000000 -0500 > @@ -498,8 +498,6 @@ > pid_t myself = getpid(); > struct el *list = NULL; > long cmdlen = sysconf(_SC_ARG_MAX) * sizeof(char); > - if (cmdlen==-1) // sysconf returned "no limitations" > - cmdlen=1000; // 1000 chars (arbitrary value)
Yes, possibly something like this, I'll upload a package containing it. Please discuss about it with upstream of procps, for the long run. Samuel
