Skip to content

Commit

Permalink
Move signal_watcher to extension model.
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna authored and ry committed Jul 14, 2010
1 parent 208290b commit e51aef7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/node_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 2 additions & 0 deletions src/node_signal_watcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,5 @@ void SignalWatcher::Stop () {
}

} // namespace node

NODE_MODULE(node_signal_watcher, node::SignalWatcher::Initialize);

0 comments on commit e51aef7

Please sign in to comment.