ソースを参照

claude doing claude things

zehe 3 ヶ月 前
コミット
1cc2c2debc
1 ファイル変更4 行追加2 行削除
  1. 4 2
      main.py

+ 4 - 2
main.py

@@ -83,7 +83,8 @@ def setup_systemd_watchdog():
             while True:
                 try:
                     subprocess.run(['systemd-notify', 'WATCHDOG=1'],
-                                 check=False, capture_output=True, timeout=5)
+                                 check=False, stdout=subprocess.DEVNULL,
+                                 stderr=subprocess.DEVNULL, timeout=5)
                     time.sleep(interval)
                 except Exception as e:
                     logger.warning(f"Failed to send watchdog notification: {e}")
@@ -554,7 +555,8 @@ def main():
         # Notify systemd that we're ready
         try:
             subprocess.run(['systemd-notify', 'READY=1'],
-                         check=False, capture_output=True, timeout=5)
+                         check=False, stdout=subprocess.DEVNULL,
+                         stderr=subprocess.DEVNULL, timeout=5)
             logger.info("Sent READY=1 to systemd")
         except Exception as e:
             logger.warning(f"Failed to notify systemd ready: {e}")