(prefix)
| 133 | |
| 134 | _oldctls = {} |
| 135 | def _fill_oldctls(prefix): |
| 136 | argv = ['sysctl', prefix] |
| 137 | p = ssubprocess.Popen(argv, stdout = ssubprocess.PIPE) |
| 138 | for line in p.stdout: |
| 139 | assert(line[-1] == '\n') |
| 140 | (k,v) = line[:-1].split(': ', 1) |
| 141 | _oldctls[k] = v |
| 142 | rv = p.wait() |
| 143 | if rv: |
| 144 | raise Fatal('%r returned %d' % (argv, rv)) |
| 145 | if not line: |
| 146 | raise Fatal('%r returned no data' % (argv,)) |
| 147 | |
| 148 | |
| 149 | KERNEL_FLAGS_PATH = '/Library/Preferences/SystemConfiguration/com.apple.Boot' |
no test coverage detected