summaryrefslogtreecommitdiffstats
path: root/ui-macos/stupid.py
diff options
context:
space:
mode:
Diffstat (limited to 'ui-macos/stupid.py')
-rw-r--r--ui-macos/stupid.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui-macos/stupid.py b/ui-macos/stupid.py
new file mode 100644
index 0000000..fdb1e0b
--- /dev/null
+++ b/ui-macos/stupid.py
@@ -0,0 +1,14 @@
+import os
+
+pid = os.fork()
+if pid == 0:
+ # child
+ try:
+ os.setsid()
+ #os.execvp('sudo', ['sudo', 'SSH_ASKPASS=%s' % os.path.abspath('askpass.py'), 'ssh', 'afterlife', 'ls'])
+ os.execvp('ssh', ['ssh', 'afterlife', 'ls'])
+ finally:
+ os._exit(44)
+else:
+ # parent
+ os.wait()