Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/amuse/rfi/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ def start(self):
arguments.append('false')

logger.debug("starting process with command `%s`, arguments `%s` and environment '%s'", command, arguments, os.environ)
self.process = Popen(arguments, executable=command, stdin=PIPE, stdout=None, stderr=None, close_fds=True)
self.process = Popen(arguments, executable=command, stdin=PIPE, stdout=None, stderr=None, close_fds=self.close_fds)
logger.debug("waiting for connection from worker")

self.socket, address = self.accept_worker_connection(server_socket, self.process)
Expand All @@ -1862,7 +1862,10 @@ def start(self):
# logger.info("worker %s initialized", self.name_of_the_worker)



@option(type="boolean", sections=("sockets_channel",))
def close_fds(self):
"""close open file descriptors when spawning child process"""
return True

@option(choices=AbstractMessageChannel.DEBUGGERS.keys(), sections=("channel",))
def debugger(self):
Expand Down