process-util: remove broken support for pid==0
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Jun 2016 00:57:41 +0000 (20:57 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Jun 2016 01:15:53 +0000 (21:15 -0400)
commit4201ce672a267e081ec5ba6f36ae5cf18db8187f
tree9fe0d18b452b45eabf17fee738fd841c386560bd
parent18dade5aaee9f13efb95e6359723974d811c9b1e
process-util: remove broken support for pid==0

Our functions that query /proc/pid/ support using pid==0 to mean
self. get_process_id also seemed to support that, but it was not implemented
correctly: the result should be in *uid, not returned, and also it gave
completely bogus result when called from get_process_gid(). But afaict,
get_process_{uid,gid} were never called with pid==0, so it's not an actual
bug. Remove the broken code to avoid confusion.
src/basic/process-util.c