Ryan Dahl
02ca3080a6
EIO_CONFIG_H not used on MinGW
2011-08-09 10:30:25 -07:00
Bert Belder
831b15a47c
Windows: fix WaitNamedPipe thread bug
2011-08-09 17:35:18 +02:00
Ben Noordhuis
65ed582cae
bench: run pound benchmark for at least 5 seconds, track connect failures
2011-08-09 03:16:29 +02:00
Peter Bright
648baa3826
Fix missing prototype warnings.
2011-08-08 18:11:01 -07:00
Ben Noordhuis
cee3cc6940
bench: use high-res timer in pound benchmark
2011-08-09 01:51:25 +02:00
Igor Zinkovsky
f9eda88fe6
fix for pound benchmark
2011-08-08 15:09:14 -07:00
Ryan Dahl
75c109055d
Bring back standalone makefiles for a better transition
2011-08-08 13:42:01 -07:00
Ben Noordhuis
58dd01ab58
build: add debug target to Makefile
2011-08-08 16:07:27 +02:00
Ryan Dahl
1493dcf359
Peter Bright's MSVS fixes
2011-08-06 22:36:59 -07:00
Ryan Dahl
42c76f720f
Add pthread-win32 temporarily
...
Until Node does not rely on libeio interfaces.
2011-08-06 19:05:13 -07:00
Ben Noordhuis
7dda111306
test, bench: add --list option to runners, prints available tests
2011-08-06 23:57:28 +02:00
Andrea Lattuada
6c3205557b
Remove uv_flag_* functions in favor of manual bit twiddling
...
Fixes #121
Fixes #129
2011-08-06 12:12:25 -07:00
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