← BYTES
Unix IPC·Starter·Ref: 15.1.11
What does the kill() syscall actually do, despite its name?
Have a question about this video? Mention reference 15.1.11 when you contact us.
a.It can only ever terminate a process immediately with no other option
b.It closes all of a process's open file descriptors
c.It deletes a process's executable file from disk
d.It sends a specified signal to a target process (or process group) -- which signal it is determines the effect, and many signals (e.g. SIGUSR1) have nothing to do with termination at all
Despite the name, kill() is a general-purpose 'send this signal to that process' syscall -- the actual effect depends entirely on which signal number is passed. SIGKILL and SIGTERM do terminate, but SIGUSR1/SIGUSR2 are reserved specifically for application-defined purposes, and SIGCONT resumes a stopped process rather than killing anything.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES15111#UnixIPC