2fbcbe90 | 05-Aug-2011 |
Ben Noordhuis |
uv-unix: fix build on systems that don't have pipe2() |
c834d5de | 05-Aug-2011 |
Bert Belder |
Windows: correct comment in process.c |
041d60e1 | 05-Aug-2011 |
Ben Noordhuis |
uv-unix: avoid exec-after-fork race in uv_spawn() The race condition in a nutshell: if ((pid = fork()) > 0) { kill(pid, SIGTERM); } else if (pid == 0)
uv-unix: avoid exec-after-fork race in uv_spawn() The race condition in a nutshell: if ((pid = fork()) > 0) { kill(pid, SIGTERM); } else if (pid == 0) { execve("/bin/cat", argp, envp); } The parent sends a signal immediately after forking. Since the child may not have called `execve()` yet, there is no telling what process receives the signal, our fork or /bin/cat. To avoid ambiguity, we create a pipe with both ends marked close-on-exec. Then, after the call to `fork()`, the parent polls the read end until it sees POLLHUP.
show more ...
|
d84b2496 | 04-Aug-2011 |
Peter Bright |
Support for unescaped arguments, suitable for use with cmd /c. Robust argument escaping that hopefully matches Windows' algorithm for unescaping. |
c01d6f92 | 03-Aug-2011 |
Ben Noordhuis |
ev: fix infinite loop in ev_walk() |
642d97ce | 03-Aug-2011 |
Bert Belder |
Windows: make process arguments buffer computation better |
ec143961 | 02-Aug-2011 |
Bert Belder |
Windows: fix bug in process arguments buffer size computation |
dbaddc44 | 02-Aug-2011 |
Bert Belder |
Windows: avoid errorneous freeing of pipe handle |
b2ed24d8 | 02-Aug-2011 |
Ryan Dahl |
unix: Remove flock code solaris doesn't have flock |
22ec2db4 | 02-Aug-2011 |
Ryan Dahl |
solaris fixes |
2e9a743d | 02-Aug-2011 |
Bert Belder |
Windows: report uv_spawn() failure asynchronously |
6d940a3a | 02-Aug-2011 |
Igor Zinkovsky |
windows: remove dependency on rpcrt4 and ole32 libs. fixes https://github.com/joyent/libuv/issues/118 |
c35548a6 | 01-Aug-2011 |
Igor Zinkovsky |
fix spawn_and_kill test on windows |
0d29ea68 | 01-Aug-2011 |
Igor Zinkovsky |
windows: fix for space in args |
404d697d | 01-Aug-2011 |
Ben Noordhuis |
uv-unix: undo accidental revert of b700896 in 5ec2575 |
aa37c698 | 01-Aug-2011 |
Ben Noordhuis |
test: add platform-specific checks for kill-after-spawn test |
5a157171 | 01-Aug-2011 |
Ben Noordhuis |
test: make spawn_helper4 never return Its whole raison d'être is to sleep until it's killed. |
5af7423f | 01-Aug-2011 |
Igor Zinkovsky |
always use PATH from parent |
5ec2575c | 01-Aug-2011 |
Ryan Dahl |
unix: Add UV_READABLE, UV_WRITABLE flags; clean up uv_shutdown |
e56c1d7a | 01-Aug-2011 |
Ben Noordhuis |
test: exit with status code 1 in spawn_helper4 Fixes broken test spawn_and_kill. |
31ecdcf3 | 01-Aug-2011 |
Ben Noordhuis |
test: move run-test spawn helpers to a separate function |
6c86f9e0 | 01-Aug-2011 |
Igor Zinkovsky |
windows: get values of path and pathext env variables when they're not supplied |
b7008965 | 01-Aug-2011 |
Ben Noordhuis |
uv-unix: unlock pipe after use, carry over lock file from uv_pipe_bind() |
023f99a6 | 01-Aug-2011 |
Ben Noordhuis |
test: gets(3)? Just say no! |
d24403ac | 01-Aug-2011 |
Ben Noordhuis |
uv-unix: safely close pipe file descriptors |