cd9ad4e75b
While here, update WWW. Changelog: https://codeberg.org/WhyNotHugo/caffeine-ng/src/tag/v4.0.2/CHANGELOG.rst Reported by: portscout
19 lines
541 B
Python
19 lines
541 B
Python
--- caffeine/cli.py.orig 2022-07-27 02:03:53 UTC
|
|
+++ caffeine/cli.py
|
|
@@ -1,4 +1,4 @@
|
|
-import ctypes
|
|
+# import ctypes
|
|
import logging
|
|
import signal
|
|
|
|
@@ -20,8 +20,8 @@ def cli(ctx, verbose):
|
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
|
|
|
# register the process id as 'caffeine'
|
|
- libc = ctypes.cdll.LoadLibrary("libc.so.6")
|
|
- libc.prctl(15, "caffeine", 0, 0, 0)
|
|
+ # libc = ctypes.cdll.LoadLibrary("libc.so.6")
|
|
+ # libc.prctl(15, "caffeine", 0, 0, 0)
|
|
|
|
if verbose:
|
|
logging.basicConfig(level=logging.DEBUG)
|