add hint for suid to oom error message - slock - simple X display locker utility
HTML git clone git://git.suckless.org/slock
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 1766ecdfd4db86e5d022a8fb951559714eb1e6a4
DIR parent 9dfe0ce531023bf63c0e518b07ee97cf0cac742a
HTML Author: Markus Teich <markus.teich@stusta.mhn.de>
Date: Fri, 29 Jan 2016 22:11:18 +0100
add hint for suid to oom error message
Diffstat:
M slock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/slock.c b/slock.c
@@ -81,7 +81,7 @@ dontkillme(void)
die("buffer too small\n");
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