You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@peteroreil this is a known issue for 0.1.4 you can switch to 0.1.5 for the moment, or wait for a few days I will release 0.1.6 soon which fixes a small issue brought in 0.1.5 for kill()
Found on version
0.1.4
/lib/index.js Line 74
If a process is started with a particularly long argument/ multiple arguments,
e.g.
node /really/long/absolute/path/to/my/script/myscriptname.js
The object returned ps.lookup for that process will return a truncated version of the
argument passed to the script e.g.
/really/long/absolute/pa
` else {
ChildProcess.exec('ps ' + args, function (err, stdout, stderr) {
Function that is causing the problem is the ChildProcess.exec.
Suggested solutions are to change from exec to spawn?
http://www.hacksparrow.com/difference-between-spawn-and-exec-of-node-js-child_process.html
Minor workaround is is to pass an option of
{ psargs: " " }
to the lookup function to limit the size ofstdout returned
The text was updated successfully, but these errors were encountered: