Ryan Dahl
bfdc421dda
Don't kill negative PIDs
Fixes issue GH-79.
15 years ago
Ryan Dahl
04c06b9149
child process now use net.Socket
15 years ago
Ryan Dahl
d5ee777af2
Don't allow child process to clobber environ
15 years ago
Ryan Dahl
769a35024f
Allow passing env to child process
15 years ago
Ryan Dahl
46ebaa00ce
Encoding 0 length data, returns '' instead of null
15 years ago
Jonas Pfenniger
7a755e04a9
Was using the old node object to get the int from the constant.
15 years ago
Ryan Dahl
45a806a066
Statically define symbols
~7% improvement in hello world HTTP response bench.
15 years ago
Ryan Dahl
c1baa70fe5
Attach/Detach -> Ref/Unref
15 years ago
Ryan Dahl
a5df0f6a65
Prefix all source files with node_
15 years ago
Ryan Dahl
3456a16f71
Accept string representations of signals in node.kill and child.kill
16 years ago
Ryan Dahl
82465fc4b1
Do not use /bin/sh to create child processes.
Instead directly call execvp(). This change is needed for the
soon-to-be-added signal handlers because the /bin/sh parent process does not
pass all signals to it's children, particularly SIGUSR1 on Linux.
The parameters of createChildProcess had to be changed slightly.
utils.exec() also has a changed implementation. A bug involving quoted
arguments was knowingly introduced into utils.exec(). Will fix later.
16 years ago
Ryan Dahl
602f9dbf3f
SetClassName on internal classes.
16 years ago
Ryan Dahl
663deb3828
delete[] instead of delete for arrays.
16 years ago
Ryan Dahl
f389f923b8
Remove erroneously placed EV_DEFAULT_UC_
16 years ago
Ryan
227638bac1
Lint
16 years ago
Ryan
393caeb4c9
Add Exception::Error where missing.
16 years ago
Ryan
21a1b045f5
Byte stream to V8 decoding and encoding.
This does not (should not) change behavior. Pulls those two functions
(encode/decode) out into node.cc.
16 years ago
Ryan
ad9d683f9f
API: rename node.Process to node.ChildProcess
This is to avoid confusion with the global "process" object, especially for
the instances of node.Process.
16 years ago
Ryan
8658999c7d
Refactor node.Process to take advantage of evcom_reader/writer.
16 years ago
Ryan
b849d50288
Remove unused symbols.
16 years ago
Ryan
0fb0af3a6c
Rename evnet to evcom.
16 years ago
Ryan
c5ab0d5a80
Upgrade liboi, which is now called evnet.
16 years ago
Ryan
22c3a1e2a5
Templatize ObjectWrap::Unwrap. Remove NODE_UNWRAP macro.
16 years ago
Ryan
1fc4dce08b
Simplify and cleanup ObjectWrap.
Simplify and inline ObjectWrap::Wrap
Inline and clean up ObjectWrap::Unwrap
Move ObjectWrap into its own file.
Remove handle from ObjectWrap constructor. add obj->Wrap(handle)
Simplify Attach/Detach in ObjectWrap
Remove ObjectWrap::InformV8ofAllocation. (Too messy/complex.)
16 years ago
Ryan
d56552dc66
Remove node.Process constructor from API
16 years ago
Ryan
d428eff023
Snakecase events .
16 years ago
Ryan
e876d6629e
Fix unused variable warnings.
16 years ago
Ryan
4787a41b84
Fix Process::MaybeShutdown's return type
16 years ago
Ryan
80bf451e6e
Use EventEmitter for node.Process
16 years ago
Ryan
5ab93502d0
Fix issue in 5b7fb10
16 years ago
Ryan
7363ccd273
bugfix: Properly exit a process.
This requires that onExit() is not called immediately upon receiving a
SIGCHLD. There could still be data in the pipez. So, instead just set a
flag and invoke the pipe watchers.
Sometimes one will not receive an EOF from pipes because the process was
killed by a SIGTERM, or something. If SIGCHLD has been recved but we are
getting EAGAIN, the pipez need to be closed too.
16 years ago
Ryan
0ff62b2ea0
Move oi_buf creation to node.cc
16 years ago
Ryan
00d9b886c1
Remove unnecessary Detach
16 years ago
Ryan
e39923a3d7
Add process.kill(sig = SIGTERM)
16 years ago
Ryan
2fd4958698
Add pid accessor
16 years ago
Ryan
a78ea510a2
Add onExit callback
16 years ago
Ryan
03c5772ce4
Get stdin/stdout working. Add process->Close().
16 years ago
Ryan
83cb156b6f
skelton of node.Process
16 years ago
Ryan
0f5170339c
remove process.{cc,h} process.exit() now exit()
the process object might return in the future but for now it is going away.
16 years ago
Ryan
cf1c58063e
Create a node namespace
Part of general reorganization.
16 years ago
Ryan
63a9cd3897
everything is changed. i've waited much too long to commit.
this is awful. i'm sorry for being so messy.
16 years ago