History log of /libuv/ (Results 4901 – 4925 of 5435)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
2fbcbe9005-Aug-2011 Ben Noordhuis

uv-unix: fix build on systems that don't have pipe2()

c834d5de05-Aug-2011 Bert Belder

Windows: correct comment in process.c

041d60e105-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 ...

d84b249604-Aug-2011 Peter Bright

Support for unescaped arguments, suitable for use with cmd /c.

Robust argument escaping that hopefully matches Windows' algorithm for unescaping.

c01d6f9203-Aug-2011 Ben Noordhuis

ev: fix infinite loop in ev_walk()

642d97ce03-Aug-2011 Bert Belder

Windows: make process arguments buffer computation better

ec14396102-Aug-2011 Bert Belder

Windows: fix bug in process arguments buffer size computation

dbaddc4402-Aug-2011 Bert Belder

Windows: avoid errorneous freeing of pipe handle

b2ed24d802-Aug-2011 Ryan Dahl

unix: Remove flock code

solaris doesn't have flock

22ec2db402-Aug-2011 Ryan Dahl

solaris fixes

2e9a743d02-Aug-2011 Bert Belder

Windows: report uv_spawn() failure asynchronously

6d940a3a02-Aug-2011 Igor Zinkovsky

windows: remove dependency on rpcrt4 and ole32 libs. fixes https://github.com/joyent/libuv/issues/118

c35548a601-Aug-2011 Igor Zinkovsky

fix spawn_and_kill test on windows

0d29ea6801-Aug-2011 Igor Zinkovsky

windows: fix for space in args

404d697d01-Aug-2011 Ben Noordhuis

uv-unix: undo accidental revert of b700896 in 5ec2575

aa37c69801-Aug-2011 Ben Noordhuis

test: add platform-specific checks for kill-after-spawn test

5a15717101-Aug-2011 Ben Noordhuis

test: make spawn_helper4 never return

Its whole raison d'être is to sleep until it's killed.

5af7423f01-Aug-2011 Igor Zinkovsky

always use PATH from parent

5ec2575c01-Aug-2011 Ryan Dahl

unix: Add UV_READABLE, UV_WRITABLE flags; clean up uv_shutdown

e56c1d7a01-Aug-2011 Ben Noordhuis

test: exit with status code 1 in spawn_helper4

Fixes broken test spawn_and_kill.

31ecdcf301-Aug-2011 Ben Noordhuis

test: move run-test spawn helpers to a separate function

6c86f9e001-Aug-2011 Igor Zinkovsky

windows: get values of path and pathext env variables when they're not supplied

b700896501-Aug-2011 Ben Noordhuis

uv-unix: unlock pipe after use, carry over lock file from uv_pipe_bind()

023f99a601-Aug-2011 Ben Noordhuis

test: gets(3)? Just say no!

d24403ac01-Aug-2011 Ben Noordhuis

uv-unix: safely close pipe file descriptors

1...<<191192193194195196197198199200>>...218