add hint for suid to oom error message
This commit is contained in:
parent
9dfe0ce531
commit
1766ecdfd4
1 changed files with 1 additions and 1 deletions
2
slock.c
2
slock.c
|
@ -81,7 +81,7 @@ dontkillme(void)
|
||||||
die("buffer too small\n");
|
die("buffer too small\n");
|
||||||
|
|
||||||
if (fd < 0 || write(fd, value, length) != length || close(fd) != 0)
|
if (fd < 0 || write(fd, value, length) != length || close(fd) != 0)
|
||||||
die("cannot disable the out-of-memory killer for this process\n");
|
die("cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue