Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm curious about the history of the name, it seems to me that the 'kill' system call could have been named 'signal', and the 'signal' system call could have been named 'handle'.

I was wondering whether the original use of the system call might have been simply to kill another process, and its usage was perhaps broadened to a more general signal-sending mechanism as the system developed - but this is speculation on my part.

Does anyone know? Thanks in advance.

share|improve this question

1 Answer 1

Indeed, the original purpose of a signal was to kill the target process. kill appeared in Unix 3rd Edition; at the time, it was reserved to root and the process was forcibly killed (like SIGKILL today) and left a core dump.

Unix 4th edition added a signal number argument, as well as the companion signal system call to set a signal handler. At the time, all signals killed the target process unless the target process had called ignore.

Over time, more and more signals appeared, a few of which did not kill the target process by default. But the name remained.

The POSIX committee debated renaming kill, because as you note not all signals are intended to terminate the target process, but this was entrenched historical usage by that point, so changing it would have been more confusing than not.

share|improve this answer
4  
It also adds to the flavour and whimsy to the programming - like most core utility names do. If we start naming things blandly after what they do, we might as well start calling our word processor word, our browser of exploring the internet internet explorer and our windowed desktop environment windows. And we've already got that. –  orion 8 hours ago
4  
@orion not to mention naming the copy command copy, the move command move, the delete command delete and the rename command rename. (Speaking of rename commands: how many people do you think would intuitively understand that moving and renaming are the same thing in Unix?) –  immibis 7 hours ago
    
Very interesting, thanks very much for the history. –  Neil Salter 6 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.