Kills the process tree of pid.
pid
POSIX: SIGTERM to the group, wait up to graceMs for it to end, then SIGKILL. A group that is already gone is not an error.
graceMs
Pid of the child, the leader of its process group on POSIX
Time the group gets to exit after SIGTERM
Kills the process tree of
pid.POSIX: SIGTERM to the group, wait up to
graceMsfor it to end, then SIGKILL. A group that is already gone is not an error.