xiaochen7
(Xiao Chen)
April 15, 2022, 12:01pm
1
Hi everyone!
When I run the executable using the command line, the command kill -2 [pid]
helps to terminate the corresponding process.
But when I run the same executable through Jenkins and then type kill -2 [pid]
in the command line, it fails to terminate the corresponding process.
I wonder if the process spawned by Jenkins ignores the signal SIGINT?
halkeye
(Gavin Mogan)
April 15, 2022, 8:53pm
2
I don’t think thats something a parent process can do. How are you running the executable, and how are you getting the pid?
xiaochen7
(Xiao Chen)
April 16, 2022, 1:20am
3
Thank you very much for your reply.
How are you running the executable, and how are you getting the pid?
I ran the executable as follows, and then get the child pid spawned by Jenkins from the command line.
xiaochen7
(Xiao Chen)
April 16, 2022, 1:40am
4
I ran the executable as follows, and then get the child pid spawned by Jenkins from the command line.
If I replace command kill -2 [pid]
with command kill -15 [pid]
, the process is successfully terminated, which seems to be the signal SIGTERM works but SIGINT does not.