Revision b74159ee
b/daemons/ganeti-masterd | ||
---|---|---|
332 | 332 |
|
333 | 333 |
options, args = ParseOptions() |
334 | 334 |
utils.debug = options.debug |
335 |
utils.no_fork = True |
|
335 | 336 |
|
336 | 337 |
CheckMaster(options.debug) |
337 | 338 |
|
b/lib/utils.py | ||
---|---|---|
51 | 51 |
_re_shell_unquoted = re.compile('^[-.,=:/_+@A-Za-z0-9]+$') |
52 | 52 |
|
53 | 53 |
debug = False |
54 |
no_fork = False |
|
54 | 55 |
|
55 | 56 |
|
56 | 57 |
class RunResult(object): |
... | ... | |
219 | 220 |
Returns: `RunResult` instance |
220 | 221 |
|
221 | 222 |
""" |
223 |
if no_fork: |
|
224 |
raise errors.ProgrammerError("utils.RunCmd() called with fork() disabled") |
|
225 |
|
|
222 | 226 |
if isinstance(cmd, list): |
223 | 227 |
cmd = [str(val) for val in cmd] |
224 | 228 |
strcmd = " ".join(cmd) |
Also available in: Unified diff