Skip to content

Commit

Permalink
redirect kitty kill command stderr to /dev/null (#2472)
Browse files Browse the repository at this point in the history
  • Loading branch information
k4lizen authored Oct 1, 2024
1 parent d664bb4 commit b08f4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/util/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b08f4b7

Please sign in to comment.