Any way to trigger the Ctrl+C action?

I wonder is there anyway for me to stimulate the action of Ctrl+C to terminate the server in Raspberry Pi?

I understand that we can execute the server initially in Daemon using :

sudo ./vhusbdarm -b

and terminate it by using :

sudo kill -9 $(pidof ./vhusbdarm)

but this will cause the lost of my /dev/video0 driver in my Raspberry Pi. (As Ctrl+C will not cause this issue)

Looking for alternative way to do so.

#2

Don't use the -9 argument

#3

Yes. I execute with kill -15, I works now.