git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resize: Add tests for some Utils functions.
[libguestfs.git]
/
fish
/
guestfish.pod
diff --git
a/fish/guestfish.pod
b/fish/guestfish.pod
index
022e03e
..
8190969
100644
(file)
--- a/
fish/guestfish.pod
+++ b/
fish/guestfish.pod
@@
-996,14
+996,15
@@
and cleans up guestfish when the script exits:
exit 1
fi
exit 1
fi
-
kill
_guestfish ()
+
cleanup
_guestfish ()
{
{
-
kill $GUESTFISH_PID
>/dev/null 2>&1 ||:
+
guestfish --remote -- exit
>/dev/null 2>&1 ||:
}
}
- trap
kill_guestfish EXIT
+ trap
cleanup_guestfish EXIT ERR
- guestfish --remote run
- # etc.
+ guestfish --remote -- run
+
+ # ...
=head2 REMOTE CONTROL RUN COMMAND HANGING
=head2 REMOTE CONTROL RUN COMMAND HANGING