isaacs
634b4de2c8
Pause process.stdin in stdin getter
...
Otherwise, it'll be ref'ed, and keep the process hanging.
2012-02-21 15:31:50 -08:00
isaacs
ff0f0aeb40
Fix #2507 Raise errors less agressively when destroying stdio streams
...
Also, if an error is already provided, then raise the provided
error, rather than throwing it with a less helpful 'stdout cannot
be closed' message.
This is important for properly handling EPIPEs.
2012-01-26 17:55:44 -08:00
Ben Noordhuis
23bb5986d4
Remove unused variable.
...
The file descriptor arg to child_process._forkChild() is not used any more.
Remove it, avoids future confusion.
2011-12-06 22:02:26 +01:00
Ben Noordhuis
36815e4179
process: fix stack overflow when recursively calling process.exit()
2011-12-05 22:43:27 +01:00
Ben Noordhuis
3d22dbf27b
cli: add -p switch, print result of --eval
2011-12-01 18:02:15 +01:00
Igor Zinkovsky
13324bf844
throw from stdout.end and stderr.end
2011-11-10 14:51:16 -08:00
Igor Zinkovsky
f84d86b660
make stdout stream non-destroyable
2011-11-09 15:04:44 -08:00
Igor Zinkovsky
5d89540b77
make stderr stream non-destroyable
2011-11-09 13:53:19 -08:00
Ryan Dahl
2a462abf5f
process.kill doesn't create error obj correctly
2011-11-08 16:58:32 -08:00
Ryan Dahl
86528489ec
new cluster api
2011-11-04 15:12:11 -07:00
Ryan Dahl
a936768890
stdout and stderr are blocking when referring to regular files
...
Fixes message tests.
2011-11-03 13:27:33 -07:00
Igor Zinkovsky
24a69d22a0
process.kill to use uv_kill
2011-11-02 17:34:17 -07:00
Ben Noordhuis
362b5a6c40
process: fix process.nextTick() error case regression
...
Patch and test by Koichi Kobayashi.
2011-11-01 16:30:43 +01:00
Ben Noordhuis
4d4900fc65
process: optimize process.nextTick()
...
33% performance boost on large nextTick queues.
2011-10-31 22:31:14 +01:00
Ryan Dahl
c5d54010bc
node cluster is now a module instead of CLI interface
...
This is to make room for master process plugins instead of adding CLI
options as proposed in #1879 .
2011-10-26 13:50:53 -07:00
isaacs
2d02e6a992
Add useGlobal flag for standard node repl
2011-10-21 13:02:49 -07:00
Igor Zinkovsky
69b73f9cf0
make process.kill a no-op on windows
2011-10-21 10:27:22 -07:00
Arnout Kazemier
e3d2ae0bfd
sys has been moved to util
2011-10-13 02:21:37 +02:00
Ryan Dahl
87339a22b1
introduce node cluster
2011-10-12 02:58:35 -07:00
Ryan Dahl
c8dbaf579c
Remove --use-legacy and --use-uv
2011-10-11 14:39:31 -07:00
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
2011-10-11 13:41:33 -07:00
Ryan Dahl
71cce3f45b
Remove dgram_legacy
2011-10-11 13:26:41 -07:00
Ryan Dahl
58e892dadd
Remove dns_legacy
2011-10-11 13:21:30 -07:00
Ryan Dahl
96e423a665
Remove child_process_legacy
2011-10-11 13:16:33 -07:00
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
2011-10-11 13:11:54 -07:00
Ryan Dahl
2c25507b81
process.stderr goes through libuv now
...
This commit removes one assert from test-console.js in which we check that
process.stderr.write returns true. In the case of a dump to a file we cannot
guarantee this any longer now that it goes through fs.WriteStream.
2011-10-10 14:15:44 -07:00
Ben Noordhuis
326ba25451
tty: unbreak --use-legacy
...
Fixes #1844 .
2011-10-10 15:37:09 +02:00
Ryan Dahl
899358e797
Add test-child-process-fork2 and fixes to make it work
2011-10-07 04:03:47 -07:00
Colton Baker
87286cc737
Fixed a lot of jslint errors.
...
Fixes #1831
2011-10-05 18:51:06 -07:00
Ben Noordhuis
bc7cfd7cd7
http: remove legacy http library
2011-10-04 20:51:34 +02:00
Ryan Dahl
416c14f644
Remove a few instances of process.binding('stdio') from src/node.js
2011-09-27 15:04:01 -07:00
Ryan Dahl
7e62bc9828
Move process.stdout unref hack to handle_wrap.cc
...
See #1726
2011-09-27 15:01:28 -07:00
Ryan Dahl
2e389c6531
scope.Close in GuessHandleType; don't use uv_is_tty
2011-09-27 13:03:28 -07:00
Ryan Dahl
1de156abb1
Bind/use uv_guess_handle
2011-09-27 13:03:28 -07:00
Ryan Dahl
74b6426ec6
Initial pass at new TTY js layer
...
This breaks Windows.
2011-09-27 13:02:11 -07:00
Ryan Dahl
0f8f863043
Fixes #1726 , hack to unref process.stdout
2011-09-27 12:41:59 -07:00
Ryan Dahl
b281171030
Support legacy API: process.stdout.fd
2011-09-15 13:57:41 -07:00
Ben Noordhuis
f8b90946ae
node: disable uv backend if NODE_USE_UV=0
2011-09-15 00:32:07 +02:00
Ryan Dahl
0928f0f290
Fix test-module-load-list
...
and lazy load modules for process.stdout
This probably breaks test-module-load-list on windows, but it hopefully is
an easy fix to replace "_posix" bindings with "_win32".
2011-09-12 18:12:48 -07:00
Ryan Dahl
0aad61e802
Use net_uv instead of net_legacy for stdio
...
Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.
2011-09-12 17:32:52 -07:00
Jann Horn
1a0edbca86
module: remove 'is URL?' check in module loader, dead code
2011-08-29 18:20:58 +02:00
Ben Noordhuis
cbd4033619
dgram: integrate libuv UDP support
2011-08-24 22:27:24 +02:00
Ben Noordhuis
fcf9cfa137
node: propagate --use-uv to child processes
2011-08-11 02:47:43 +02:00
Ben Noordhuis
38f948a373
http: make http2 the default, legacy backend is available with --use-http1
...
Fixes #1441 .
2011-08-02 23:40:56 +02:00
Ryan Dahl
7772f21b60
initial pass at lib/child_process_uv.js
2011-07-31 15:58:10 -07:00
isaacs
703a1ffe52
Revert "AMD compatibility for node"
...
This reverts commit 9967c369c9 .
Conflicts:
test/simple/test-module-loading.js
2011-07-29 11:56:38 -07:00
Ryan Dahl
ea9ee1fb7e
Add process.moduleLoadList for better startup transparency
2011-07-27 19:30:32 -07:00
Ryan Dahl
497fe79f97
Speed up startup time
...
Reverts 2a05fe784d .
2011-07-27 16:36:05 -07:00
Ben Noordhuis
0082ef271e
http: add --use-http2 switch
2011-07-26 17:00:53 +02:00
Ben Noordhuis
df3a8fcb62
cli: don't print result of --eval
...
Fixes #572 .
2011-07-25 23:59:10 +02:00