On Thu, Apr 12, 2012 at 3:55 PM, Michael Schwartz <[email protected]> wrote:
> https://github.com/mschwartz/SilkJS/blob/master/src/process.cpp#L77 > > It works, but the child process doesn't have the debugger or tick threads > running anymore. Any idea how to get those running again? > Unfortunately, no. i implemented fork() for the SpiderMonkey engine back in 2007, but that was threadless and in C, so i never had any significant problems with it (other than having absolutely no idea whether or not the JS VM reacted properly after forking). But in any case: HandleScope scope; return scope.Close(Integer::New(pid)); That scope isn't necessary - your fork() is already being called from v8 and has an implicit scope. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
