Shigeki Ohtsu
09faee40eb
windows: fix environment_creation test
...
abc945bc04 fails environment_creation test
2012-08-29 04:31:25 +02:00
Bert Belder
7c3ba514e7
windows: use WCHAR consistently
2012-08-13 22:31:48 +02:00
Bert Belder
aa69f34d53
windows: report spawn errors to the exit callback
...
Formerly spawn errors would be reported as a message printed to the
process' stderr, to match unix behaviour. Unix has now been fixed to
be more sensible, so this hack can now be removed.
This also fixes a race condition that could occur when the user closes
a process handle before the exit callback has been made.
2012-08-13 22:31:47 +02:00
Bert Belder
80eae82104
test: spawn failures are reported by setting the exit code to -1
2012-08-13 22:31:47 +02:00
Ben Noordhuis
13467a40d4
unix: retrieve execve() errors in process.c
...
Make the forked child process send the errno to its parent process when it
fails to spawn a new process.
2012-08-08 23:19:50 +02:00
Ben Noordhuis
f90d428b29
test: fix unused function warning
...
exit_cb_unexpected() is only used on Windows.
2012-06-29 02:34:12 +02:00
Fedor Indutny
1cd9642cbb
test: stdin/out/err should be set to /dev/null when ignored
2012-06-02 21:38:39 +02:00
Fedor Indutny
dc7a62d114
test: test for uv_spawn with stdio_count == 3
2012-06-01 17:32:34 +02:00
Fedor Indutny
f5b5127db0
change spawn() api to allow using existing streams for stdio
...
This commit also adds support for this api on Unix.
2012-06-01 17:32:27 +02:00
Bert Belder
04a7e5c274
test-spawn.c: remove unused variable
2012-06-01 02:26:25 +02:00
Charlie McConnell
69a923bf93
process: implement UV_PROCESS_DETACHED flag for uv_spawn
2012-06-01 02:24:05 +02:00
Fedor Indutny
c0081f0e66
unix: allow specifying FDs to be inherited by a child process
...
Previously the only option was to create a pipe or an ipc channel. This
patch makes it possible to inherit a handle that is already open in the
parent process. It also makes it possible to set more than just stdin,
stdout and stderr.
2012-05-29 00:05:12 +02:00
Igor Zinkovsky
5a34f19970
windows: allow specifying FDs to be inherited by a child process
...
Previously the only option was to create a pipe or an ipc channel. This
patch makes it possible to inherit a handle that is already open in the
parent process. There is also room for setting more than just stdin,
stdout and stderr, although this is not supported yet.
2012-05-28 23:59:58 +02:00
Erik Dubbelboer
623441685d
test-spawn failed to build on linux
...
- added missing header file
- converted c++ style comment to c style comment
2012-04-28 23:57:59 +02:00
Bert Belder
bfd6d465c7
Test for the uv_spawn's setuid and setgid options
2012-04-28 02:39:18 +02:00
Bert Belder
76364c26de
Fix spawn_and_kill_with_std test
2012-04-13 01:59:24 +02:00
Ben Noordhuis
ec0eff955e
Revert b3e0ad4, 149d32c, e99fdf0 and ea9baef.
...
Detaching doesn't work yet, the setsid() call fails and leaves the child process
attached to the parent's session.
Revert "test: Add test case for spawning detached child processes."
Revert "win: Implement options.detached for uv_spawn() for Windows."
Revert "unix: Implement options.detached for uv_spawn() for unix."
Revert "Add "detached" member to uv_process_options_t to denote whether a child
process should spawn detached from its parent."
This reverts commit ea9baef95c .
This reverts commit e99fdf0df6 .
This reverts commit 149d32cb96 .
This reverts commit b3e0ad4db8 .
2012-02-28 15:29:05 +01:00
Charlie McConnell
ea9baef95c
test: Add test case for spawning detached child processes.
2012-02-24 15:15:00 +01:00
seebees
59f9a736b1
test: process should not wait for stdio before terminating
2011-11-23 17:34:18 +01:00
Tj Holowaychuk
a378110f9e
Add UV_ESRCH
...
Fixes #239 .
2011-11-08 16:36:20 -08:00
Igor Zinkovsky
74b49e821b
uv_kill
2011-11-02 14:34:07 -07:00
Ben Noordhuis
acc98ca922
test: uv_process_kill(proc, 0) should not kill the process
2011-10-11 21:36:54 +02:00
Ryan Dahl
bb6b629e6a
make test-ipc accept the pending tcp server
2011-10-06 10:17:18 -07:00
Ryan Dahl
6921d2fc07
Add argument to uv_pipe_init for IPC, unix impl
2011-10-06 10:17:07 -07:00
Bert Belder
0dc564a2aa
Remove uv_init calls from tests and benchmarks
2011-09-12 11:32:41 -07:00
Ben Noordhuis
90ea007f61
test: fix compiler warnings for test-spawn.c
2011-09-08 00:15:47 +02:00
Bert Belder
8e3a8602ad
update tests for multiplicity
2011-08-31 04:19:26 +02:00
Bert Belder
3aec77f9d4
bring back uv_init
2011-08-31 04:19:07 +02:00
Ryan Dahl
56dcaf9b06
unix: multiplicity
2011-08-31 04:18:55 +02:00
Ben Noordhuis
36ce74f2ca
Add UDP support to libuv.
2011-08-24 04:55:01 +02:00
Peter Bright
3409c9b383
Include important Windows environmental variables even when a blank/custom environment is specified.
2011-08-09 14:29:51 -07: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
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
Ben Noordhuis
aa37c698ee
test: add platform-specific checks for kill-after-spawn test
2011-08-02 00:46:44 +02: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
Ryan Dahl
ddee1821fa
Add spawn_stdout test
2011-07-25 17:11:23 -07:00
Ryan Dahl
92bc7b4959
Start uv_spawn()
...
Unix only at the moment. Lacks test for stdio
2011-07-25 16:19:27 -04:00