Closed rwatson closed 5 months ago
When I run chericat -p on a target process, and then hit Ctrl-C during the scan, the target process is terminated:
chericat -p
robert@cheri-blossom:~/chericat % sleep 1000 & [1] 5475 robert@cheri-blossom:~/chericat % bin/chericat -p 5475 -v ^C robert@cheri-blossom:~/chericat % [1] Killed sleep 1000
Ideally, chericat would catch SIGINT and allow the process to resume normally. Or, perhaps more ideally, there would be a way to use ptrace(2) such that this didn’t happen, but I’m not sure that’s possible if a target process is suspended.
chericat
SIGINT
ptrace(2)
This PR should help with this issue: https://github.com/CTSRD-CHERI/chericat/pull/40, which has been merged.
Please reopen this issue if the problem is still there.
When I run
chericat -p
on a target process, and then hit Ctrl-C during the scan, the target process is terminated:Ideally,
chericat
would catchSIGINT
and allow the process to resume normally. Or, perhaps more ideally, there would be a way to useptrace(2)
such that this didn’t happen, but I’m not sure that’s possible if a target process is suspended.