X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=slock.c;h=cf495551326acd9b63aa2feac5656f70a4f1a5ff;hb=f6582b68b03fe25fe0296b685af6b5924cca7df9;hp=df2d3c6beb2fa2af394bab7202aa0bc5493436b7;hpb=9dfe0ce531023bf63c0e518b07ee97cf0cac742a;p=slock.git diff --git a/slock.c b/slock.c index df2d3c6..cf49555 100644 --- 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 @@ -296,7 +296,7 @@ main(int argc, char **argv) { int screen; if ((argc == 2) && !strcmp("-v", argv[1])) - die("slock-%s, © 2006-2015 slock engineers\n", VERSION); + die("slock-%s, © 2006-2016 slock engineers\n", VERSION); if ((argc == 2) && !strcmp("-h", argv[1])) usage();