MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / kill

Method kill

ui-macos/main.py:103–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 return self._try_wait(os.WNOHANG)
102
103 def kill(self):
104 assert(self.pid > 0)
105 print 'killing: pid=%r rv=%r' % (self.pid, self.rv)
106 if self.rv == None:
107 self.logfunc('Disconnecting from %s.\n' % self.serverobj.host())
108 os.kill(self.pid, 15)
109 self.wait()
110
111 def gotdata(self, notification):
112 print 'gotdata!'

Callers 2

check_daemonFunction · 0.45
_disconnectMethod · 0.45

Calls 3

waitMethod · 0.95
logfuncMethod · 0.80
hostMethod · 0.80

Tested by

no test coverage detected