Demo for query storing
Change-Id: I947bcac841992c3f6cfd01ab337c265b0d01cb70
diff --git a/node_modules/hooker/parent.js b/node_modules/hooker/parent.js
new file mode 100644
index 0000000..c4a055e
--- /dev/null
+++ b/node_modules/hooker/parent.js
@@ -0,0 +1,17 @@
+var spawn = require('child_process').spawn;
+
+function loop() {
+ console.log('starting');
+ console.log(this);
+ //var child = spawn('./node_modules/nodeunit/bin/nodeunit', ['test']);
+ var child = spawn('node', ['child.js']);
+ child.stdout.on('data', function(buffer) {
+ process.stdout.write(buffer);
+ });
+ child.on('exit', this.async());
+}
+
+var context = {
+ async: function() { return loop.bind(context); }
+};
+loop.call(context);
\ No newline at end of file