Jeroen Janssen
d9b0534ae0
gyp: enable debug symbols with MSVC
...
Fixes #130 .
2011-08-06 10:45:58 -07:00
Ben Noordhuis
62d1c5751e
uv-unix: fix warning: passing argument 1 of ‘eio_custom’ from incompatible pointer type
2011-08-06 17:01:09 +02:00
Ben Noordhuis
351a332e25
build: don't assume python lives at /usr/bin/python
2011-08-06 16:59:25 +02:00
Ben Noordhuis
8abce89e57
build: fix libeio build on linux
...
Define HAVE_UTIMES so libeio includes <utime.h>
2011-08-06 14:43:50 +02:00
Ryan Dahl
48877edfb8
Work around GYP bug - use absolute paths
2011-08-06 03:36:36 -07:00
Ryan Dahl
60e973172e
Add pound benchmark.
2011-08-06 03:34:17 -07:00
Ryan Dahl
a30a7336f0
Build with gyp
2011-08-06 02:17:56 -07:00
Ryan Dahl
52e1a9e997
Upgrade eio (it has better msvs support)
2011-08-06 00:29:39 -07:00
Igor Zinkovsky
a706a66d81
accept benchmark
2011-08-05 18:20:06 -07:00
Igor Zinkovsky
cc143317b1
windows: fix req refcount for uv_pipe_connect
2011-08-05 17:47:20 -07:00
Ryan Dahl
4ca89308b6
Remove assert that is broken on darwin
2011-08-05 17:47:18 -07:00
Tom Hughes
76338f794e
ares_parse_a_reply: fix memleak
2011-08-06 00:18:59 +02:00
Ryan Dahl
787ef5da80
uv-unix: Fix missing symbols on FreeBSD7 systems.
...
thanks Lenny
2011-08-05 11:58:11 -07:00
Ben Noordhuis
2fbcbe90c8
uv-unix: fix build on systems that don't have pipe2()
2011-08-05 17:12:02 +02:00
Bert Belder
c834d5de9e
Windows: correct comment in process.c
2011-08-05 08:22:01 +02:00
Ben Noordhuis
041d60e141
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.
2011-08-05 04:09:20 +02:00
Peter Bright
d84b249616
Support for unescaped arguments, suitable for use with cmd /c.
...
Robust argument escaping that hopefully matches Windows' algorithm for unescaping.
2011-08-04 18:22:47 -07:00
Ben Noordhuis
c01d6f928c
ev: fix infinite loop in ev_walk()
2011-08-04 19:03:47 +02:00
Bert Belder
642d97ced8
Windows: make process arguments buffer computation better
2011-08-03 02:09:37 +02:00
Bert Belder
ec143961d1
Windows: fix bug in process arguments buffer size computation
2011-08-03 01:42:32 +02:00
Bert Belder
dbaddc4423
Windows: avoid errorneous freeing of pipe handle
2011-08-03 00:18:12 +02:00
Ryan Dahl
b2ed24d86e
unix: Remove flock code
...
solaris doesn't have flock
2011-08-02 07:08:13 +00:00
Ryan Dahl
22ec2db413
solaris fixes
2011-08-02 06:29:25 +00:00
Bert Belder
2e9a743da0
Windows: report uv_spawn() failure asynchronously
2011-08-01 20:24:54 -07:00
Igor Zinkovsky
6d940a3afc
windows: remove dependency on rpcrt4 and ole32 libs. fixes https://github.com/joyent/libuv/issues/118
2011-08-01 20:10:55 -07:00
Igor Zinkovsky
c35548a69e
fix spawn_and_kill test on windows
2011-08-01 16:50:59 -07:00
Igor Zinkovsky
0d29ea68c9
windows: fix for space in args
2011-08-01 16:41:08 -07:00
Ben Noordhuis
404d697dc4
uv-unix: undo accidental revert of b700896 in 5ec2575
2011-08-02 01:12:57 +02:00
Ben Noordhuis
aa37c698ee
test: add platform-specific checks for kill-after-spawn test
2011-08-02 00:46:44 +02:00
Ben Noordhuis
5a15717144
test: make spawn_helper4 never return
...
Its whole raison d'être is to sleep until it's killed.
2011-08-02 00:46:44 +02:00
Igor Zinkovsky
5af7423f90
always use PATH from parent
2011-08-01 14:28:39 -07:00
Ryan Dahl
5ec2575c0e
unix: Add UV_READABLE, UV_WRITABLE flags; clean up uv_shutdown
2011-08-01 13:55:55 -07:00
Ben Noordhuis
e56c1d7a60
test: exit with status code 1 in spawn_helper4
...
Fixes broken test spawn_and_kill.
2011-08-01 22:42:32 +02:00
Ben Noordhuis
31ecdcf3a4
test: move run-test spawn helpers to a separate function
2011-08-01 22:42:32 +02:00
Igor Zinkovsky
6c86f9e0a8
windows: get values of path and pathext env variables when they're not supplied
2011-08-01 13:40:48 -07:00
Ben Noordhuis
b7008965bc
uv-unix: unlock pipe after use, carry over lock file from uv_pipe_bind()
2011-08-01 22:23:06 +02:00
Ben Noordhuis
023f99a609
test: gets(3)? Just say no!
2011-08-01 18:14:14 +02:00
Ben Noordhuis
d24403ac8e
uv-unix: safely close pipe file descriptors
2011-08-01 18:06:20 +02:00
Ben Noordhuis
a3852a7d73
uv-unix: set stream->accepted_fd=-1 in uv_pipe_init()
...
stream->accepted_fd was zeroed in uv_pipe_init() and that made
uv__finish_close() close the stdin file descriptor. Not good.
2011-08-01 18:05:55 +02:00
Ryan Dahl
e9bee5131a
add spawn benchmark
2011-07-30 22:45:03 -07:00
Igor Zinkovsky
1d6117a89b
windows: set mode for child pipe handle
2011-07-30 10:55:30 -07:00
Igor Zinkovsky
3e6611a693
more output
2011-07-29 23:54:52 -07:00
Igor Zinkovsky
d272a2183d
Windows: spawn child processes
2011-07-29 19:02:51 -07:00
Ryan Dahl
7108ca8853
uv_spawn requires stdio pipes to be initialized
2011-07-29 15:37:00 -07:00
Ben Noordhuis
78e94e9589
bench: remove unused locals from benchmark-pump.c
2011-07-29 21:07:09 +02:00
Ben Noordhuis
eed6f395d1
pipe: uv_pipe_listen raises UV_EINVAL on unbound socket
2011-07-29 04:22:59 +02:00
Ben Noordhuis
8e8af8fd34
uv-unix: use lock file to detect stale UNIX sockets
2011-07-29 03:59:55 +02:00
Ben Noordhuis
3c057ff8e5
uv-unix: add simple lock file API for internal use
2011-07-29 03:59:55 +02:00
Ryan Dahl
d0e1e62d87
Increase eio thread stacksize
2011-07-28 18:53:20 -07:00
Ryan Dahl
cf5babef80
Fix getaddrinfo bug
2011-07-28 21:47:43 -04:00