diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2012-01-08 19:16:05 -0500 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2012-01-08 19:16:05 -0500 |
commit | d5c3aa61b8b77d3b12647bb15a83ba51a5f4d312 (patch) | |
tree | f2be45bae2de7bf76bd25e3120228747372452c9 /Sshuttle VPN.app/Contents/Resources/main.py | |
parent | 5b57de24041a4c184197fa369859dcaf95c1bdf4 (diff) |
MacOS precompiled app package for sshuttle-0.60sshuttle-0.60-macos-bin
Diffstat (limited to 'Sshuttle VPN.app/Contents/Resources/main.py')
-rw-r--r-- | Sshuttle VPN.app/Contents/Resources/main.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Sshuttle VPN.app/Contents/Resources/main.py b/Sshuttle VPN.app/Contents/Resources/main.py index 3e6c2a1..fc67a34 100644 --- a/Sshuttle VPN.app/Contents/Resources/main.py +++ b/Sshuttle VPN.app/Contents/Resources/main.py @@ -78,6 +78,11 @@ class Runner: if pid == self.pid: if os.WIFEXITED(code): self.rv = os.WEXITSTATUS(code) + if self.rv == 111: + NSRunAlertPanel('Sshuttle', + 'Please restart your computer to finish ' + 'installing Sshuttle.', + 'Restart Later', None, None) else: self.rv = -os.WSTOPSIG(code) self.serverobj.setConnected_(False) @@ -87,7 +92,10 @@ class Runner: return self.rv def wait(self): - return self._try_wait(0) + rv = None + while rv is None: + self.gotdata(None) + rv = self._try_wait(os.WNOHANG) def poll(self): return self._try_wait(os.WNOHANG) |