Skip to content

Close file descriptors when launching core agent#219

Merged
adamchainz merged 1 commit intomasterfrom
issue_216_close_fds
Aug 3, 2019
Merged

Close file descriptors when launching core agent#219
adamchainz merged 1 commit intomasterfrom
issue_216_close_fds

Conversation

@adamchainz
Copy link
Copy Markdown
Contributor

@adamchainz adamchainz commented Aug 3, 2019

Fixes #216.

This is the default on Python 3.4+.

Tested with https://github.com/adamchainz/scout-test-apps/commit/61f0197e5731c3a6709a1520d08a2102d53a0217 before and after, checking lsof -nP -i :8000 to see if the core agent process was holding onto the port.

@adamchainz adamchainz force-pushed the issue_216_close_fds branch from fe51dd3 to 6bfc871 Compare August 3, 2019 09:09
Fixes #216.

This is the default [Python 3.4+](https://docs.python.org/3/library/os.html#fd-inheritance).

Tested with https://github.com/adamchainz/scout-test-apps/commit/61f0197e5731c3a6709a1520d08a2102d53a0217 before and after, checking `lsof -nP -i :8000` to see if the core agent process was holding onto the port.
@adamchainz adamchainz force-pushed the issue_216_close_fds branch from 6bfc871 to a8168f9 Compare August 3, 2019 09:10
@adamchainz adamchainz merged commit 142500c into master Aug 3, 2019
@adamchainz adamchainz deleted the issue_216_close_fds branch August 3, 2019 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core Agent inheriting and holding open sockets from parent

1 participant