var Registry = require('./registry.js').registry();

var F_IN_CHILD_PROCESS = false;

module.exports.inChildProcess = function(set){

	if(set === undefined){
		return F_IN_CHILD_PROCESS;
	}
	else{

		F_IN_CHILD_PROCESS = set;

		if(F_IN_CHILD_PROCESS){

			Registry = require('./registry_child_process.js').registry();		

		}
	}

};

module.exports.spawn = function(actor, receive){

	Registry.register(actor, receive);

};

module.exports.send = function(){

	var args = Array.prototype.slice.call(arguments);

	Registry.deliverMessage.apply(Registry, args);

};


@@ -46,16 +46,18 @@
 try();%0A%0A
+//
 var F_IN
@@ -80,17 +80,21 @@
  false;%0A
-%0A
+//%0A//
 module.e
@@ -132,17 +132,21 @@
 n(set)%7B%0A
-%0A
+//%0A//
 %09if(set 
@@ -161,16 +161,18 @@
 fined)%7B%0A
+//
 %09%09return
@@ -196,19 +196,27 @@
 SS;%0A
+//
 %09%7D%0A
+//
 %09else%7B%0A
-%0A
+//%0A//
 %09%09F_
@@ -239,17 +239,21 @@
  = set;%0A
-%0A
+//%0A//
 %09%09if(F_I
@@ -270,17 +270,21 @@
 OCESS)%7B%0A
-%0A
+//%0A//
 %09%09%09Regis
@@ -346,17 +346,27 @@
 ;%09%09%0A
-%0A
+//%0A//
 %09%09%7D%0A
+//
 %09%7D%0A
-%0A
+//%0A//
 %7D;%0A%0A

Purge of innecesary code for inChildProcess