Is there a process with pid 0 linux?

0

Is there a process with pid 0 linux? Also is there any negative pids? This is just out of curiosity :D

agz

Posted 2013-03-26T18:19:59.677

Reputation: 6 820

Question was closed 2013-03-26T18:30:41.743

You'll find your answer in the above question – much better explained than what I could come up with :) – slhck – 2013-03-26T18:31:03.527

kill -1 kills all processes, so the answer to the second question is no. – Dennis – 2013-03-26T18:37:36.283

@Dennis But the reason for no negative PIDs is not kill… it's the way the kernel allocates PIDs. – slhck – 2013-03-26T18:51:56.503

@shlck: kill's behavior is – of course – effect, not cause. I was trying to say in my previous comment that, if the kernel allocated negative PIDS, kill would have been written differently. – Dennis – 2013-03-26T18:55:48.817

No answers