shared: procfs_file_alloca: handle pid==0
when pid is set to 0 use /proc/self
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
9dddaedfcc
commit
b68fa010f7
+2
-1
@@ -33,7 +33,8 @@
|
||||
|
||||
static bool ignore_proc(pid_t pid) {
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
char c, *p;
|
||||
char c;
|
||||
const char *p;
|
||||
size_t count;
|
||||
uid_t uid;
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user