[Pkg-libvirt-commits] [libguestfs] 125/165: virt-log: do_log_journal: return instead of exiting immediately.

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:25:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit d167da86d922d1c9341848117f7ce140a92dd951
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Jun 16 10:31:29 2014 +0100

    virt-log: do_log_journal: return instead of exiting immediately.
    
    This cleans up commit a3475cf9bbbbd3514b117d5edd75d9c0e239d43a.
---
 cat/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cat/log.c b/cat/log.c
index 770a3a7..15a26e8 100644
--- a/cat/log.c
+++ b/cat/log.c
@@ -325,7 +325,7 @@ do_log_journal (void)
 
     xattrs = guestfs_journal_get (g);
     if (xattrs == NULL)
-      exit (EXIT_FAILURE);
+      return -1;
 
     ts = guestfs_journal_get_realtime_usec (g); /* error checked below */
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list