freebsd-ports/x11/py-caffeine-ng/files/patch-caffeine_cli.py

20 lines
541 B
Python
Raw Normal View History

--- 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)