njnu-seafish commented on PR #17320:
URL:
https://github.com/apache/dolphinscheduler/pull/17320#issuecomment-3036660060
> I've tested this issue #17316 base on your reproduction steps in macos and
ubuntu 24.04 and found this issue does not exist, please describe the specific
reproduction environment. @njnu-seafish
Sorry, I was very busy during the day and didn't have time to reply.
My environment is centos7.
Below is an example I tested directly on my machine.
`
[dolphinscheduler@xxxxx][~]
$ more test.sh
echo ${JAVE_HOME};
sleep 10m
[dolphinscheduler@xxxxx][~]
$ date
Fri Jul 4 22:59:27 CST 2025
[dolphinscheduler@xxxxx][~]
$ sudo -u dolphinscheduler -i sh test.sh
[dolphinscheduler@xxxxx][~]
$ ps -ef | grep -i test.sh
root 1259617 1258564 0 22:59 pts/5 00:00:00 sudo -u dolphinscheduler
-i sh test.sh
[dolphinscheduler@xxxxx][~]
$ pstree -p 1259617
sudo(1259617)───sh(1259618)───sleep(1259696)
[dolphinscheduler@xxxxx][~]
$ pstree -p 1259617
sudo(1259617)───sh(1259618)───sleep(1259696)
// kill -s SIGINT return 0. However, the process was not actually killed.
[dolphinscheduler@xxxxx][~]
$ sudo -u dolphinscheduler kill -s SIGINT 1259617 1259618 1259696
[dolphinscheduler@xxxxx][~]
$ echo $?
0
// wating 5m
[dolphinscheduler@xxxxx][~]
$ date
Fri Jul 4 23:04:19 CST 2025
[dolphinscheduler@xxxxx][~]
$ ps -ef | grep -i test.sh
root 1259617 1258564 0 22:59 pts/5 00:00:00 sudo -u dolphinscheduler
-i sh test.sh
[dolphinscheduler@xxxxx][~]
$ pstree -p 1259617
sudo(1259617)───sh(1259618)───sleep(1259696)
`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]