-
Notifications
You must be signed in to change notification settings - Fork 164
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
kernel: change SyExecuteProcess
to use posix_spawn
#4799
base: master
Are you sure you want to change the base?
kernel: change SyExecuteProcess
to use posix_spawn
#4799
Conversation
This works on cygwin, and stops the directory changing behaviour |
2f788fa
to
e1079b6
Compare
SyExecuteProcess
to use posix_spawn
SyExecuteProcess
to use posix_spawn
I decided to just make the move of |
return -1; | ||
} | ||
|
||
// wait for some action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: the "classic" code using fork
also has some logic to "ignore a CTRL-C". And it disables our SIGCHLD handler temporarily. We may need to add one or both back here.
e1079b6
to
77c3dcd
Compare
77c3dcd
to
75a535a
Compare
75a535a
to
3b4905d
Compare
3b4905d
to
8c0b2d8
Compare
8c0b2d8
to
31bb9d8
Compare
@ChrisJefferson does this work under cygwin? If so, does it fix the bug where
Process
is changing the working dir for the parent process?The patch is not ready for merging in any case:
SyExecuteProcess
toiostream.c
is kind of a hack, but for the sake of quickly experimenting I didn't want to bother with trying to come up with a "clean" solution.