Skip to content

Commit b08f4b7

Browse files
authored
redirect kitty kill command stderr to /dev/null (#2472)
1 parent d664bb4 commit b08f4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/util/misc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def kill():
504504
if terminal == 'qdbus':
505505
os.kill(pid, signal.SIGHUP)
506506
elif terminal == 'kitty':
507-
subprocess.Popen(["kitten", "@", "close-window", "--match", "id:{}".format(kittyid)])
507+
subprocess.Popen(["kitten", "@", "close-window", "--match", "id:{}".format(kittyid)], stderr=stderr)
508508
else:
509509
os.kill(pid, signal.SIGTERM)
510510
except OSError:

0 commit comments

Comments
 (0)