diff options
Diffstat (limited to 'x11-misc/slock/files/slock-1.2-dontdieonme.patch')
-rw-r--r-- | x11-misc/slock/files/slock-1.2-dontdieonme.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-misc/slock/files/slock-1.2-dontdieonme.patch b/x11-misc/slock/files/slock-1.2-dontdieonme.patch new file mode 100644 index 000000000000..e4d1b464597f --- /dev/null +++ b/x11-misc/slock/files/slock-1.2-dontdieonme.patch @@ -0,0 +1,11 @@ +--- a/slock.c ++++ b/slock.c +@@ -57,7 +57,7 @@ + if (fd < 0 && errno == ENOENT) + return; + if (fd < 0 || write(fd, "-1000\n", 6) != 6 || close(fd) != 0) +- die("cannot disable the out-of-memory killer for this process\n"); ++ fprintf(stderr, "cannot disable the out-of-memory killer for this process\n"); + } + #endif + |