commit | 311ed72a9032ba12210695ca95f7af8d1fb9b10c | [log] [tgz] |
---|---|---|
author | Justin TerAvest <[email protected]> | Sat Jul 15 07:20:36 2017 -0600 |
committer | chrome-bot <[email protected]> | Wed Jul 19 16:27:02 2017 -0700 |
tree | f9c04408b1aa0b423035d9a318675695dc1254e2 | |
parent | 92ae3ca1173534791c4488c9e9985f323ba33356 [diff] |
Remove unused nohup() method. Change-Id: Ib712176b86d6bbc97c8da64d7578f5b402fbb214 Reviewed-on: https://chromium-review.googlesource.com/572793 Commit-Ready: Justin TerAvest <[email protected]> Tested-by: Justin TerAvest <[email protected]> Reviewed-by: Dan Erat <[email protected]>
diff --git a/server/base_utils.py b/server/base_utils.py index 255d355..8b64300 100644 --- a/server/base_utils.py +++ b/server/base_utils.py
@@ -188,20 +188,6 @@ return None -def nohup(command, stdout='/dev/null', stderr='/dev/null', background=True, - env = {}): - cmd = ' '.join(key+'='+val for key, val in env.iteritems()) - cmd += ' nohup ' + command - cmd += ' > %s' % stdout - if stdout == stderr: - cmd += ' 2>&1' - else: - cmd += ' 2> %s' % stderr - if background: - cmd += ' &' - utils.system(cmd) - - def default_mappings(machines): """ Returns a simple mapping in which all machines are assigned to the