libproc-ng: prettyfy proc mount messages
A patch from Gentoo. Bug-Gentoo: https://bugs.gentoo.org/138029?id=138029 Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.2.7-proc-mount.patch?revision=1.1&view=markup Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.2.7-proc-mount.patch?revision=1.1&view=markup Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
committed by
Craig Small
parent
fe82a3246a
commit
90b201f1f4
@ -1201,7 +1201,7 @@ void look_up_our_self(proc_t *p) {
|
||||
char sbuf[1024];
|
||||
|
||||
if(file2str("/proc/self", "stat", sbuf, sizeof sbuf) == -1){
|
||||
fprintf(stderr, "Error, do this: mount -t proc none /proc\n");
|
||||
fprintf(stderr, "Error, do this: mount -t proc proc /proc\n");
|
||||
_exit(47);
|
||||
}
|
||||
stat2proc(sbuf, p); // parse /proc/self/stat
|
||||
|
Reference in New Issue
Block a user