Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let processmonitor chdir before exec #3530

Merged
merged 11 commits into from
Apr 30, 2020

Conversation

chalcolith
Copy link
Member

I have taken the liberty of rebasing #2981 (and fixing a couple of Windows issues) because I am too impatient to wait for @mfelsche to have time to look at it.

Quoth @rkallos:

Fixes #2821.

This PR adds a pipe for errors that take place after fork() and exec(), which might also solve #2719. Data sent across this pipe winds up calling ProcessNotify.stderr. This is disingenuous, since the data was actually sent along a separate pipe. However, it seems intuitive enough, as I imagine that is where error dispatch and handling would take place. I also did not want to inflict a large change on ProcessNotify without the blessing of the Pony core team. All in all, this seemed like the path of least resistance for fixing the issue. I would be happy to change the behavior to something else.

@chalcolith chalcolith added the changelog - changed Automatically add "Changed" CHANGELOG entry on merge label Apr 30, 2020
@mfelsche
Copy link
Contributor

Thanks @kulibali i somehowbmissed your rebase request. Also thank you very much for fixing the remaining windows issues. They kept me from making progress on this matter too.

Totaly fine to merge, if ci is cooperative.

@chalcolith chalcolith merged commit e67cd27 into master Apr 30, 2020
@chalcolith chalcolith deleted the let-processmonitor-chdir-before-exec branch April 30, 2020 05:09
github-actions bot pushed a commit that referenced this pull request Apr 30, 2020
SeanTAllen added a commit that referenced this pull request May 1, 2020
@chalcolith chalcolith mentioned this pull request May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - changed Automatically add "Changed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProcessMonitor should allow setting the current working directory for the process
4 participants