golf down conditional for socket activation
commitb302eb1beaef181ef48e9360c48ed85a3d87aa01
authorEric Wong <e@80x24.org>
Sun, 1 Nov 2015 08:09:51 +0000 (1 08:09 +0000)
committerEric Wong <e@80x24.org>
Sun, 1 Nov 2015 08:17:53 +0000 (1 08:17 +0000)
tree4006073ff208a1780c09e8c31708ebabc2296617
parent1f88b6e723fff2302c13f95177cc7253da8b57d6
golf down conditional for socket activation

The PID of a process can never be zero as kill(2) interprets a '0'
PID arg as "every process in caller's process group", so there's no
risk of the  'nil.to_i => 0'  conversion resulting in a truth value
when compared to $$.
lib/unicorn/http_server.rb