From b08f4b7bc8eaf37a6f77a1255e6d8462dd5c3e14 Mon Sep 17 00:00:00 2001 From: k4lizen <124312252+k4lizen@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:37:52 +0200 Subject: [PATCH] redirect kitty kill command stderr to /dev/null (#2472) --- pwnlib/util/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnlib/util/misc.py b/pwnlib/util/misc.py index d69873572..08815531a 100644 --- a/pwnlib/util/misc.py +++ b/pwnlib/util/misc.py @@ -504,7 +504,7 @@ def kill(): if terminal == 'qdbus': os.kill(pid, signal.SIGHUP) elif terminal == 'kitty': - subprocess.Popen(["kitten", "@", "close-window", "--match", "id:{}".format(kittyid)]) + subprocess.Popen(["kitten", "@", "close-window", "--match", "id:{}".format(kittyid)], stderr=stderr) else: os.kill(pid, signal.SIGTERM) except OSError: