Don't kill self accidentally.
authorRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 18:06:00 +0000 (19:06 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 18:06:00 +0000 (19:06 +0100)
commitdc5df3bfec706803e75a5f2454293db30e753249
treef0a94a3d5a3130ce3c2e46e7a935bc3743e7b5ca
parentfb4ec82d97f71963ea7f830cb0bc38abefcbac99
Don't kill self accidentally.

Always check that pid > 0 before calling kill (pid, 9).  The
issue was that sometimes pid == 0, and this ends up killing
ourselves.
src/guestfs.c