The issue was that we were not awaiting for the child.kill() method to kill the npm start process, which internally uses the treeKill utility to kill all the child process spawned by the main process (in this case, it was the sdk-commands process spawned by the npm start process).
By not awaiting the promise, the treeKill method could not complete gathering the pids of the child processes, since that is an async procedure in some platforms (on linux it requires executing a ps and in mac a pgrep).
Fixes https://github.com/decentraland/sdk/issues/677
The issue was that we were not awaiting for the
child.kill()
method to kill thenpm start
process, which internally uses thetreeKill
utility to kill all the child process spawned by the main process (in this case, it was thesdk-commands
process spawned by thenpm start
process).By not awaiting the promise, the
treeKill
method could not complete gathering the pids of the child processes, since that is an async procedure in some platforms (on linux it requires executing aps
and in mac apgrep
).