shell: Skip clients that we forked ourselves in kill binding
authorTiago Vignatti <tiago.vignatti@intel.com>
Thu, 27 Sep 2012 14:48:35 +0000 (17:48 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 4 Oct 2012 15:03:49 +0000 (11:03 -0400)
commit920f1970a441be1ada64ba5530a7a3f57c1d2ee0
tree3f27c98259cedfb8cc45d81c2dddfbe0d3d2dd5c
parentb7dbbd6fc79a82d8230b61ec12b9dabc5411db65
shell: Skip clients that we forked ourselves in kill binding

When we fork a client and give one end of a socketpair, the credentials
on the socket fd comes back as ourselves.  When that happens, do not kill
the process.

Also remove superfluous variables.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
src/shell.c