Changeset 4ea1e22
- Timestamp:
- Jul 27, 2009 7:56:29 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- d5e3b8e
- Parents:
- fc36019
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
rfc36019 r4ea1e22 538 538 self.log.debug("[scp_file]: %s" % " ".join(scp_cmd)) 539 539 if not self.debug: 540 rv = call(scp_cmd, stdout=dnull, stderr=dnull) 540 rv = call(scp_cmd, stdout=dnull, stderr=dnull, close_fds=True, 541 close_fds=True) 541 542 542 543 return rv == 0 … … 563 564 if not self.debug: 564 565 if dnull: 565 sub = Popen(sh_str, shell=True, stdout=dnull, stderr=dnull) 566 sub = Popen(sh_str, shell=True, stdout=dnull, stderr=dnull, 567 close_fds=True) 566 568 else: 567 sub = Popen(sh_str, shell=True) 569 sub = Popen(sh_str, shell=True, 570 close_fds=True) 568 571 if timeout: 569 572 i = 0 … … 648 651 rv = 0 649 652 else: 650 status = Popen(cmd, stdout=PIPE, stderr=dev_null) 653 status = Popen(cmd, stdout=PIPE, stderr=dev_null, 654 close_fds=True) 651 655 for line in status.stdout: 652 656 m = state_re.match(line) … … 855 859 # May raise CalledProcessError 856 860 self.log.debug("[generate_ssh_keys]: %s" % " ".join(cmd)) 857 rv = call(cmd, stdout=trace, stderr=trace )861 rv = call(cmd, stdout=trace, stderr=trace, close_fds=True) 858 862 if rv != 0: 859 863 raise service_error(service_error.internal, … … 999 1003 # Use dot to create a visualization 1000 1004 dot = Popen([neato, '-Gstart=rand', '-Gepsilon=0.005', '-Gmaxiter=2000', 1001 '-Gpack=true', dotname], stdout=PIPE )1005 '-Gpack=true', dotname], stdout=PIPE, close_fds=True) 1002 1006 1003 1007 # Translate dot to vis format … … 1895 1899 1896 1900 self.log.debug("running local splitter %s", " ".join(tclcmd)) 1897 tclparser = Popen(tclcmd, stdout=PIPE )1901 tclparser = Popen(tclcmd, stdout=PIPE, close_fds=True) 1898 1902 split_data = tclparser.stdout 1899 1903
Note: See TracChangeset
for help on using the changeset viewer.