You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/12/24 11:09:36 UTC
[GitHub] [dolphinscheduler] zhuangchong commented on issue #7578: [Bug] [server] Why getPidStr by pstree only get child process
zhuangchong commented on issue #7578:
URL: https://github.com/apache/dolphinscheduler/issues/7578#issuecomment-1000794764
1. Dolphin will first start a sudo root process
2. When kill, kill all child processes, the sudo process will also end
3. For this piece, why remove the first pid, because the first pid is a root-level process
```java
pidList = pidList.subList(1, pidList.size());
```
When using sudo -u tenant kill -9 pids, it will report insufficient permissions. If this is changed to sudo kill -9 pids, there is no need to remove the first pid above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org