libuv/src/unix
Roman Neuhauser 5a0f3411fc unix: map ENODEV to UV_ENODEV
produces better error message from test-dgram-multicast-multi-process
when run w/o network.

before:

=== release test-dgram-multicast-multi-process ===
Path: simple/test-dgram-multicast-multi-process
dgram.js:287
    throw new errnoException(errno, 'addMembership');
          ^
Error: addMembership Unknown system errno 19
    at new errnoException (dgram.js:356:11)
    at Socket.addMembership (dgram.js:287:11)
    at Object.<anonymous> (/home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js:224:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
[PARENT] Worker 9223 died. 1 dead of 3

dgram.js:287
    throw new errnoException(errno, 'addMembership');
          ^
Error: addMembership Unknown system errno 19
    at new errnoException (dgram.js:356:11)
    at Socket.addMembership (dgram.js:287:11)
    at Object.<anonymous> (/home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js:224:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

[PARENT] sent 'First message to send' to 224.0.0.114:12346
dgram.js:287
[PARENT] sent 'Second message to send' to 224.0.0.114:12346
    throw new errnoException(errno, 'addMembership');
[PARENT] sent 'Third message to send' to 224.0.0.114:12346
          ^
[PARENT] sendSocket closed
[PARENT] Worker 9224 died. 2 dead of 3
Error: addMembership Unknown system errno 19
    at new errnoException (dgram.js:356:11)
    at Socket.addMembership (dgram.js:287:11)
    at Object.<anonymous> (/home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js:224:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
[PARENT] Worker 9225 died. 3 dead of 3
[PARENT] All workers have died.
[PARENT] Fail
Command: out/Release/node /home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js

after:

=== release test-dgram-multicast-multi-process ===
Path: simple/test-dgram-multicast-multi-process
dgram.js:287
    throw new errnoException(errno, 'addMembership');
          ^
Error: addMembership ENODEV
    at new errnoException (dgram.js:356:11)
    at Socket.addMembership (dgram.js:287:11)
    at Object.<anonymous> (/home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js:224:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
[PARENT] Worker 13141 died. 1 dead of 3

dgram.js:287
    throw new errnoException(errno, 'addMembership');
          ^
[PARENT] sent 'First message to send' to 224.0.0.114:12346
[PARENT] sent 'Second message to send' to 224.0.0.114:12346
[PARENT] sent 'Third message to send' to 224.0.0.114:12346
[PARENT] sent 'Fourth message to send' to 224.0.0.114:12346
[PARENT] sendSocket closed

dgram.js:287
    throw new errnoException(errno, 'addMembership');
          ^
Error: addMembership ENODEV
    at new errnoException (dgram.js:356:11)
    at Socket.addMembership (dgram.js:287:11)
    at Object.<anonymous> (/home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js:224:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
[PARENT] Worker 13142 died. 2 dead of 3
Error: addMembership ENODEV
    at new errnoException (dgram.js:356:11)
    at Socket.addMembership (dgram.js:287:11)
    at Object.<anonymous> (/home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js:224:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
[PARENT] Worker 13143 died. 3 dead of 3
[PARENT] All workers have died.
[PARENT] Fail
Command: out/Release/node /home/roman/wc/node/test/simple/test-dgram-multicast-multi-process.js
2012-06-26 17:33:29 +02:00
..
eio eio: don't use futimes() on linux 2012-02-06 20:35:56 +01:00
ev unix: fix memory leak in libev 2012-06-14 04:03:05 +02:00
linux linux: fix typo in syscall name 2012-06-18 17:06:50 +02:00
async.c unix: implement async handles in libuv 2012-06-11 04:19:31 +02:00
core.c unix: implement uv_disable_stdio_inheritance() 2012-06-14 01:20:49 +02:00
cygwin.c unix, test: make NANOSEC a 64 bits unsigned int 2012-06-07 17:00:01 +02:00
darwin.c Revert "Fix memory leak in uv_exepath() on OSX." 2012-04-06 00:55:04 +02:00
dl.c unix: reset error status in uv_dlopen() 2012-06-12 01:48:21 +02:00
error.c unix: map ENODEV to UV_ENODEV 2012-06-26 17:33:29 +02:00
freebsd.c unix, test: make NANOSEC a 64 bits unsigned int 2012-06-07 17:00:01 +02:00
fs.c unix, windows: rework reference counting scheme 2012-05-17 07:07:53 +02:00
internal.h unix: simplify uv__make_pipe() and uv__make_socketpair() 2012-06-11 02:47:39 +02:00
kqueue.c unix, windows: rework reference counting scheme 2012-05-17 07:07:53 +02:00
loop-watcher.c unix: split up loop.c 2012-05-23 23:47:06 +02:00
loop.c unix: implement async handles in libuv 2012-06-11 04:19:31 +02:00
netbsd.c unix, test: make NANOSEC a 64 bits unsigned int 2012-06-07 17:00:01 +02:00
openbsd.c unix, test: make NANOSEC a 64 bits unsigned int 2012-06-07 17:00:01 +02:00
pipe.c unix: rework pending handle/req logic 2012-05-30 00:08:22 +02:00
poll.c unix: fix uv_poll CPU usage spike 2012-05-23 12:52:44 +02:00
process.c unix: always set CLOEXEC flag for child process stdio FDs 2012-06-14 18:29:47 +02:00
stream.c unix: make uv_shutdown() return UV_ENOTCONN 2012-06-08 02:48:28 +02:00
sunos.c sunos: fix free() of non-malloc'd pointer 2012-06-25 16:53:24 +02:00
tcp.c unix: replace ev_io with uv__io_t 2012-05-23 03:42:32 +02:00
thread.c unix, windows: add semaphore functions 2012-06-03 04:04:05 +02:00
timer.c unix: implement timers in libuv 2012-05-31 03:08:34 +02:00
tty.c unix: turn field stream->blocking into a flag 2012-05-23 22:48:57 +02:00
udp.c unix: move memset out of recvmsg inner loop 2012-06-05 15:42:20 +02:00
uv-eio.c unix: uv_async handles should not be unref'ed automatically 2012-06-10 02:25:20 +02:00
uv-eio.h