From daa61cc1db4ce5df90a0cfc18d22005d02d9f8c8 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 24 Nov 2008 19:43:17 +0000 Subject: [PATCH] add TIOCNOTTY ioctl wrapper --- tiocnotty | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tiocnotty diff --git a/tiocnotty b/tiocnotty new file mode 100755 index 0000000..1bf635e --- /dev/null +++ b/tiocnotty @@ -0,0 +1,15 @@ +#! /usr/bin/python + +import sys +import os +import fcntl +import termios + +try: + tty = open('/dev/tty') + fcntl.ioctl(tty, termios.TIOCNOTTY) + tty.close() +except IOError: + pass + +os.execvp(sys.argv[1], sys.argv[1:]) -- 2.30.2