summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-18 17:41:09 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-18 18:02:56 +0100
commit635af5be04265f845186b40e9a9fe7b102ad6909 (patch)
tree500912c27eadeab0fd27a3f090462d3d6b7114cb /src/guestfs-internal.h
parent70c033998e0e721dc4f9eb2a20348098b259752c (diff)
downloadlibguestfs-635af5be04265f845186b40e9a9fe7b102ad6909.tar.gz
libguestfs-635af5be04265f845186b40e9a9fe7b102ad6909.tar.xz
libguestfs-635af5be04265f845186b40e9a9fe7b102ad6909.zip
Remove guestfs___print_timestamped_argv.
This function was used to print the qemu and febootstrap-supermin-helper command lines. Unfortunately in the qemu case it was used incorrectly: it called the internal debug function (ie. event API callback) from the forked qemu subprocess, which meant that higher level event callbacks might have been invoked from the child process. To fix this, convert the qemu case into a new function called print_qemu_command line which just prints the command line directly to stderr. This is called after stderr has been redirected into the pipe to the main process. Thus the qemu command line will be marshalled into the event API along with other qemu and appliance output. After fixing this, only one use of guestfs___print_timestamped_argv remained, for printing the febootstrap-supermin-helper command line. This is converted to a local function print_febootstrap_command_line. Also print_febootstrap_command_line is now called before we fork febootstrap-supermin-helper, so that messages no longer overlap.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index d2deb1ce..79d89901 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -328,7 +328,6 @@ extern void guestfs___debug (guestfs_h *g, const char *fs, ...)
extern void guestfs___trace (guestfs_h *g, const char *fs, ...)
__attribute__((format (printf,2,3)));
extern const char *guestfs___persistent_tmpdir (void);
-extern void guestfs___print_timestamped_argv (guestfs_h *g, const char *argv[]);
extern void guestfs___print_timestamped_message (guestfs_h *g, const char *fs, ...);
extern void guestfs___free_inspect_info (guestfs_h *g);
extern int guestfs___set_busy (guestfs_h *g);