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:
parent
208290b524
commit
e51aef7f3c
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
@ -96,3 +96,5 @@ void SignalWatcher::Stop () {
|
||||
}
|
||||
|
||||
} // namespace node
|
||||
|
||||
NODE_MODULE(node_signal_watcher, node::SignalWatcher::Initialize);
|
||||
|
Loading…
Reference in New Issue
Block a user