control c killing just mpv and not sfm
Mattio-cmd opened this issue · 1 comments
Mattio-cmd commented
Make it so sfm does not closes itself after pressing control c in mpv/sxiv.
My idea is making it so mpv stops running after i kill it with control c but sfm stays
afify commented
Hi @Mattio-cmd,
sfm
fork then exec, of course you can kill the parent PID
kill(main_pid, sig);