Skip to content

Close pipes on failure - #123

Merged
snoyberg merged 1 commit into
haskell:masterfrom
Yuras:fd_leak
Apr 4, 2018
Merged

Close pipes on failure#123
snoyberg merged 1 commit into
haskell:masterfrom
Yuras:fd_leak

Conversation

@Yuras

@Yuras Yuras commented Apr 3, 2018

Copy link
Copy Markdown
Contributor

When we fail to create communication pipe, we should cleanup resources
before exit. E.g. we should close pipes for stdin, stdout and stderr if
they where created. Fixes #122.

@snoyberg snoyberg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you add a note to the ChangeLog explaining the modification?

When we fail to create communication pipe, we should cleanup resources
before exit. E.g. we should close pipes for stdin, stdout and stderr if
they where created. Fixes haskell#122.
@Yuras

Yuras commented Apr 4, 2018

Copy link
Copy Markdown
Contributor Author

Done. Should I also update package version in cabal file?

@snoyberg snoyberg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, no version bump necessary right now, thanks!

@snoyberg
snoyberg merged commit a43f9ab into haskell:master Apr 4, 2018
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.

Leaking file descriptors

2 participants