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>
Wed, 7 Jul 2010 14:03:51 +0000 (15:03 +0100)
commit8161ea9bb046c8450384b5b15e1f4b2f3dca582b
tree9a0e00f6d87443be7d76e2297bbbc0985b37850f
parentcf9e01508d48b752a29df4fceb95ed5306651fe2
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.
fish/fish.c