fish: Don't fail if -m and --listen flags are both given (RHBZ#612178).
authorRichard Jones <rjones@redhat.com>
Wed, 7 Jul 2010 14:01:38 +0000 (15:01 +0100)
committerRichard Jones <rjones@redhat.com>
Mon, 12 Jul 2010 07:41:29 +0000 (08:41 +0100)
commit1bbd84b1ff8ed2a74522887499c8f2b5154eb363
tree59c18c1ba1cec6906a25b341fda4af78a34101c9
parentac42042573cc3ee8818926dcbfaa2dc9ff2cb585
fish: Don't fail if -m and --listen flags are both given (RHBZ#612178).

Testing this against a Fedora disk image:

$ ./fish/guestfish --ro -a F13.img -m /dev/sda1 --listen
export GUESTFISH_PID=6033
$ ./fish/guestfish --remote=6033 -- ping-daemon
$ ./fish/guestfish --remote=6033 -- ping-daemon
$ ./fish/guestfish --remote=6033 -- exit

Without this fix the first remote command would fail because
qemu would have already been killed.

For stable-1.2 branch:
 - Cherry picked from commit 8161ea9bb046c8450384b5b15e1f4b2f3dca582b
 - Rebased for older guestfish code.
fish/fish.c