It seems to work here... if I made it something like kexec("ls > testfile"), testfile actually has data in it. If you ran something like top, shouldn't it exit when node quits?
On Fri, Jul 20, 2012 at 8:22 AM, JP Richardson <jprichard...@gmail.com>wrote: > Hi, I'm not sure if this is the right place to post this. I apologize in > advance if it's not. > > I'm trying to port my `kexec` module [ > https://github.com/jprichardson/node-kexec] to Node v0.8. The problem is > that any of the `exec` family of functions from unistd.h don't seem to work > inside of a Node v0.8 add on. The calling process just terminates without > actually calling the process. > > Am I missing anything different in regard to Node v0.8 native addons? > > My binding.gyp file is pretty simple: > > { > 'targets': [ > { > 'target_name': 'kexec', > 'sources': [ 'src/node_kexec.cpp' ] > } > ] > } > > Oh ya, I'm testing this on Mac OS X Lion. Any help would be appreciated. > Thanks! > > -JP >