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 21:23:27 +0000 (22:23 +0100)
commit772a8309611a8bf3fc0005c89d08c6e134ae3d23
tree2d099921a9b5e6d08a28f7aed17eab1475ff3eaa
parent08ddf6b1d9b6c19c87b82a44d5e0fffd70e41635
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.
(cherry picked from commit dc5df3bfec706803e75a5f2454293db30e753249)
src/guestfs.c