3abbffa493
There really is no need to source a defined variable from a linux header. The OOM-rank ranges from -1000 to 1000, so we can safely hardcode -1000, which is a sane thing to do given slock is suid and we don't want to play around too much here anyway. On another notice, let's not forget that this still is a shitty heuristic. The OOM-killer still can kill us (thus I also changed the wording in the error-message. We do not disable the OOM-killer, we're just hiding. |
||
---|---|---|
LICENSE | ||
Makefile | ||
README | ||
config.def.h | ||
config.mk | ||
slock.1 | ||
slock.c |
README
slock - simple screen locker ============================ simple screen locker utility for X. Requirements ------------ In order to build slock you need the Xlib header files. Installation ------------ Edit config.mk to match your local setup (slock is installed into the /usr/local namespace by default). Afterwards enter the following command to build and install slock (if necessary as root): make clean install Running slock ------------- Simply invoke the 'slock' command. To get out of it, enter your password.