mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-misc/slock: Turn the correct die() into a warning.
Package-Manager: portage-2.2.27
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
--- a/slock.c
|
||||
+++ b/slock.c
|
||||
@@ -55,7 +55,6 @@
|
||||
va_start(ap, errstr);
|
||||
vfprintf(stderr, errstr, ap);
|
||||
va_end(ap);
|
||||
- exit(1);
|
||||
}
|
||||
@@ -81,7 +81,7 @@
|
||||
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 (make sure to suid or sgid slock)\n");
|
||||
+ fprintf(stderr, "cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
Reference in New Issue
Block a user