You're only allowed to send signals to a process running with the same UID (unless the sending process is running as root). When you use sudo
, the new process is running as root, but if you try to kill it you're running as your normal userid. You would have to use sudo kill PID
to kill it.
Signals sent from terminal control characters are treated specially: they can be sent to any process running in the same login session as the terminal.