MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / _fill_oldctls

Function _fill_oldctls

sshuttle/methods/ipfw.py:50–62  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

48
49
50def _fill_oldctls(prefix):
51 argv = ['sysctl', prefix]
52 p = ssubprocess.Popen(argv, stdout=ssubprocess.PIPE, env=get_env())
53 for line in p.stdout:
54 line = line.decode()
55 assert line[-1] == '\n'
56 (k, v) = line[:-1].split(': ', 1)
57 _oldctls[k] = v.strip()
58 rv = p.wait()
59 if rv:
60 raise Fatal('%r returned %d' % (argv, rv))
61 if not line:
62 raise Fatal('%r returned no data' % (argv,))
63
64
65def _sysctl_set(name, val):

Callers 1

sysctl_setFunction · 0.85

Calls 2

get_envFunction · 0.90
FatalClass · 0.90

Tested by

no test coverage detected