Red Hat Bugzilla – Bug 592910
'guestfish --remote run' hangs in a shell command substitution context
Last modified: 2012-05-02 09:08:32 EDT
Description of problem:
running 'guestfish --remote run' in a shell command substitution, i.e., `` or $()
would cause the command to hang.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ eval `guestfish -a test.img --listen`
2. a=`guestfish --remote run`
we get hang with step 2
the command should return on completion.
Easy to reproduce.
Something about guestfs_launch interferes with
stdout in a way which is incompatible with the remote
Note this *doesn't* happen with any other command. For example:
$ a=`guestfish --remote list-devices`
$ echo $a
$ a=`guestfish --remote ping-daemon`
$ echo $a
Created attachment 414520 [details]
strace -o strace.log -f -s 1024 sh -c 'a=`guestfish --remote run`'
Can this one get at least a documentation fix?
Sure. The bug wasn't cloned for 6.2, which is why it
had disappeared off the RHEL radar.
Cloned as bug 730248.
Documented upstream in commit 6cabc1cd02e181063596b48df55c3f6db51a6bb9.
We're not going to fix the bug itself.