aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-01-29 22:11:18 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-01-29 22:11:18 +0100
commit1766ecdfd4db86e5d022a8fb951559714eb1e6a4 (patch)
tree695297fa4fe20a770e47948f69bea35aae928d89
parent9dfe0ce531023bf63c0e518b07ee97cf0cac742a (diff)
add hint for suid to oom error message
-rw-r--r--slock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slock.c b/slock.c
index df2d3c6..fa7ec84 100644
--- a/slock.c
+++ b/slock.c
@@ -81,7 +81,7 @@ dontkillme(void)
81 die("buffer too small\n"); 81 die("buffer too small\n");
82 82
83 if (fd < 0 || write(fd, value, length) != length || close(fd) != 0) 83 if (fd < 0 || write(fd, value, length) != length || close(fd) != 0)
84 die("cannot disable the out-of-memory killer for this process\n"); 84 die("cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)\n");
85} 85}
86#endif 86#endif
87 87