0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

Move signal_watcher to extension model.

This commit is contained in:
Paul Querna 2010-07-13 23:45:24 -07:00 committed by Ryan Dahl
parent 208290b524
commit e51aef7f3c
3 changed files with 3 additions and 4 deletions

View File

@ -1597,10 +1597,6 @@ static Handle<Value> Binding(const Arguments& args) {
StatWatcher::Initialize(exports);
File::Initialize(exports);
binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "signal_watcher")) {
exports = Object::New();
SignalWatcher::Initialize(exports);
binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "http_parser")) {
exports = Object::New();
InitHttpParser(exports);

View File

@ -5,6 +5,7 @@ NODE_EXT_LIST_ITEM(node_cares)
NODE_EXT_LIST_ITEM(node_crypto)
#endif
NODE_EXT_LIST_ITEM(node_net)
NODE_EXT_LIST_ITEM(node_signal_watcher)
NODE_EXT_LIST_ITEM(node_stdio)
NODE_EXT_LIST_END

View File

@ -96,3 +96,5 @@ void SignalWatcher::Stop () {
}
} // namespace node
NODE_MODULE(node_signal_watcher, node::SignalWatcher::Initialize);