Michael Carter
a38607605c
Add process.setuid(), getuid()
15 years ago
Ryan Dahl
6f92d8f3b0
Add handlescope and flush to process.reallyExit()
15 years ago
Ryan Dahl
ae1fc497bb
Fix stdout flush issue
http://github.com/ry/node/issues#issue/53
15 years ago
Ryan Dahl
f3ad635576
Downcase process.ARGV/ENV to process.argv/env
15 years ago
Ryan Dahl
9f5643f427
Reorganize the start-up process
- assign 'GLOBAL' (and now 'global') inside src/node.js
- position for eventually allowing replacements to src/node.js for people
like Kris Kowal who want the nice libev and libeio bindings but not
necessarily node's choices of modules or promises.
15 years ago
Ryan Dahl
bf803f478b
Reimplment Buffers
15 years ago
Ryan Dahl
42ee16978e
Implement new http-parser binding using Buffer
15 years ago
Ryan Dahl
f88d39de74
getmem() for solaris
15 years ago
Ryan Dahl
aeb7d6d168
Add process.IdleWatcher
With priorities. Will be used for process.nextLoop().
15 years ago
Ryan Dahl
8e6dd52683
Hack to display more useful SyntaxError exceptions.
For some reason v8 doesn't include the frame with the syntax error in the
stack trace - so have to special case it.
15 years ago
Ryan Dahl
53413598b6
Fix another problem with the EIO interface
Should call eio_poll() when given a done_poll signal as well.
Bug report and test case by Kris Zyp <kriszyp@gmail.com>
15 years ago
Vanilla Hsu
d22952bfe0
getmem for freebsd
15 years ago
Ryan Dahl
b1e126f415
libeio bugfix part 4
Oops. Last commit broke a few tests. Should work now!
15 years ago
Ryan Dahl
f80cc69c23
libeio bugfix part 3
Finally (hopefully) fix the issue that Felix reported. It's only appearing
on macintosh (test/mjsunit/test-eio-race3.js)
The trick/hack is to call eio_poll() again before reentering the event loop.
Additionally this commit implements a more complex method of calling
eio_poll(), occasionally dropping to an ev_idle watcher.
See also:
3f39772834
http://lists.schmorp.de/pipermail/libev/2010q1/000855.html
http://groups.google.com/group/nodejs/browse_thread/thread/9f8db11c792a68bb/a89705f68971f53c
15 years ago
Ryan Dahl
3f39772834
libeio bugfix part 2
Reverts the change to deps/libeio/eio.c added in
04dd2d51be
It wasn't a bug, I was just using eio incorrectly.
See http://lists.schmorp.de/pipermail/libev/2010q1/000855.html
15 years ago
Ryan Dahl
c819abccb6
Start on net2
15 years ago
Ryan Dahl
f219938b69
add io watcher
15 years ago
Ryan Dahl
630bb7a012
Rename blob to buffer.
15 years ago
Ryan Dahl
0afed52329
initial blobs
15 years ago
Ryan Dahl
53a841d96a
Simplify exception reporting
15 years ago
Ryan Dahl
0d7e88a429
Bugfix: libeio race condition
Process at most 10 pending responses from the thread pool in one go.
10 was chosen arbitrarily.
Test and report by Felix Geisendörfer <felix@debuggable.com>
15 years ago
Ryan Dahl
45a806a066
Statically define symbols
~7% improvement in hello world HTTP response bench.
15 years ago
Ryan Dahl
4d818f1fd3
Implement promises entirely in JS
15 years ago
Ryan Dahl
48452838b3
Clean up context creation
15 years ago
Ryan Dahl
38e425d9bf
Add V8 heap info to process.memoryUsage()
15 years ago
choonkeat
44d5f212fe
Stat::Callback has 2 arguments for callback: current stat info and previous stat info
http://groups.google.com/group/nodejs/msg/f8e51a8e0c74bd85
15 years ago
Ryan Dahl
dc093ef833
Add process.loop() process.unloop()!!!
Move the event loop calls into javascript.
Makes life so much easier.
15 years ago
Friedemann Altrock
0433d828cf
add process.umask()
15 years ago
Ryan Dahl
8d2f9e83a4
Add process.watchFile() process.unwatchFile()
This is an interface to libev's ev_stat watcher.
15 years ago
Felix Geisendörfer
2b252acea4
Implement process "uncaughtException" event
This event can be used to overwrite the default exception mechanism which
reports the exception and kills the node process.
See google group post:
http://groups.google.com/group/nodejs/browse_thread/thread/9721dc3a2638446f
15 years ago
Ryan Dahl
06d493e7e3
Remove debug message
15 years ago
Felix Geisendörfer
7371fcb312
Temporary function to determine str byte length
Will need a better place later on
15 years ago
Ryan Dahl
d737a060c8
Combine all compiled javascript files into src/node.js
15 years ago
Brandon Beacher
47fcf785ac
Added process.chdir()
15 years ago
Ryan Dahl
b3b3cfe007
Move memoryUsage() into C on Linux
15 years ago
Ryan Dahl
3a70129a9c
Add sys.memoryUsage()
15 years ago
Ryan Dahl
f481183140
Add process.platform
15 years ago
Ryan Dahl
ad0a4cefb8
Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
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
15 years ago
Brandon Beacher
334d56d2be
Added external interface for signal handlers.
Also process.pid and node.kill().
15 years ago
Ryan Dahl
0ae02c9f04
Internalize node_version.h.
With the more detailed node.version changing (every commit), having
node_version.h exposed to all modules required a complete recompile each
time a commit was made.
People can use the javascript interface to get the version.
15 years ago
Ryan Dahl
388145546d
Add comments to node.cc
15 years ago
Ryan Dahl
e742d077e0
Enable debugging.
Use the --debug command line flag to enable.
It appears that d8 sucks. Luckily it can be rewritten rather easily with the
repl and tcp client libraries.
Node's CL option parsing is getting rather unwieldy - needs refactor.
15 years ago
Ryan Dahl
53ebe75930
Improve build for V8
Users following HEAD should 'make distclean' and reconfigure after this
update.
15 years ago
Ryan Dahl
b404996cf3
Fix --v8-options command line argument.
15 years ago
Brandon Beacher
f068251494
Added signal handler.
To be used internally. Needs an exposed interface.
15 years ago
Ryan Dahl
39c61367a7
Only arguments before -- should be passed to V8.
15 years ago
Ryan Dahl
2b994d9e37
Also accept 'utf-8' to specify utf8 encodings.
15 years ago
Ryan Dahl
23c7f472d0
API: Move node.exit() to process.exit().
15 years ago