-
Versionv19.1.0 PlatformDarwin Mrs-MacBook-Air.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64 Subsystemchild_process What steps will reproduce the bug?import { exec, spawn} from 'child_process';
import { join } from 'path';
var execution = exec('ping', { maxBuffer: 1024 * 1024 * 10 });
var spawning = spawn('ping');
// var spawning = spawn('dart', [join('bin', 'main.dart')]);
execution.kill(); In my case, I'm running a server. This shows it killed the execution but I can still see the server is up after I killed it. And it also shows that a process in services manager(generic). How often does it reproduce? Is there a required condition?every time. What is the expected behavior?must kill the process. What do you see instead?manually killing it. Additional informationNOTE: This is in VS code extension development. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 10 replies
-
Not a bug so converted to a discussion. Pass |
Beta Was this translation helpful? Give feedback.
Fixed by using PID ranges
-
inprocess.kill(-PID)