Skip to content

Commit

Permalink
Merge pull request #8 from ros2/intra_process_demo_fixups
Browse files Browse the repository at this point in the history
only unset watcher when not on Windows (fix #7)
  • Loading branch information
dirk-thomas committed Aug 31, 2015
2 parents ceb33f1 + f8c6a9d commit f7f8872
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions launch/launch/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def launch(self):
asyncio.set_event_loop(loop)
returncode = loop.run_until_complete(self._run())
loop.close()
# the watcher must be reset otherwise a repeated invocation fails inside asyncio
asyncio.get_event_loop_policy().set_child_watcher(None)
if os.name != 'nt':
# the watcher must be reset otherwise a repeated invocation fails inside asyncio
asyncio.get_event_loop_policy().set_child_watcher(None)

return returncode

Expand Down

0 comments on commit f7f8872

Please sign in to comment.