CTSRD-CHERI / chericat

Other
2 stars 0 forks source link

Hitting Ctrl-C while running chericat -p on a target kills the target #32

Closed rwatson closed 5 months ago

rwatson commented 8 months ago

When I run chericat -p on a target process, and then hit Ctrl-C during the scan, the target process is terminated:

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.

psjm3 commented 5 months ago

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.