You are not logged in.

#1 2006-10-23 07:31:36

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

kill

Not a big deal, but the kill binary and kill manual aren't synchronous.
The only things the kill binary can do is (as far as the man is concerned) :
kill pid
kill -s signal pid
kill -signal pid
kill -l
kill -l signal

And cannot do:
kill -L
kill -V
kill -version

because it will use the characters after `-' for the `kill -signal pid' version and fail with unknown signal.
No one cares. But just thought I'd contribute something smile

Offline

#2 2006-10-23 11:35:03

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: kill

If you take a closer look to the manpage, you'll find out there's just "kill" and "/bin/kill":

[jan ~]$ /bin/kill -V
kill (procps version 3.2.7)
[jan ~]$ kill -V
bash: kill: V: invalid signal specification

Offline

#3 2006-10-23 16:52:30

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: kill

What are the differences between the two?


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#4 2006-10-23 17:15:29

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: kill

the kill binary is a program... the other is a command built into bash. Like the cd command.

Dusty

Offline

#5 2006-10-23 18:36:28

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: kill

Dusty wrote:

the kill binary is a program... the other is a command built into bash. Like the cd command.

Is there a functional difference, or is that it?


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#6 2006-10-23 18:48:23

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: kill

chrismortimore wrote:
Dusty wrote:

the kill binary is a program... the other is a command built into bash. Like the cd command.

Is there a functional difference, or is that it?

As far as I know there isn't a difference; a killed process is a killed process. I think you'd have to check the sources of bash and kill to be sure. (The bash sources are quite well set up, IIRC -- I have never had a reason to look at kill).

Dusty

Offline

#7 2006-10-23 21:41:27

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: kill

Dusty wrote:

As far as I know there isn't a difference; a killed process is a killed process. I think you'd have to check the sources of bash and kill to be sure. (The bash sources are quite well set up, IIRC -- I have never had a reason to look at kill).

Think I'll save that one for a rainy day... wink

Cheers.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#8 2006-10-24 02:14:21

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: kill

chrismortimore wrote:
Dusty wrote:

As far as I know there isn't a difference; a killed process is a killed process. I think you'd have to check the sources of bash and kill to be sure. (The bash sources are quite well set up, IIRC -- I have never had a reason to look at kill).

Think I'll save that one for a rainy day... wink

Cheers.

... when you've got some time to KILL? *harharhar*


1000

Offline

#9 2006-10-24 09:49:14

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: kill

byte wrote:

... when you've got some time to KILL? *harharhar*

Hang your head in shame.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

Board footer

Powered by FluxBB