Fix create mode in case no post-create hook is given.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Mar 2010 13:32:17 +0000 (14:32 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 12 Mar 2010 13:32:17 +0000 (14:32 +0100)
Without the patch, dss would hang forever waiting for the post-create
hook to die.

dss.c

diff --git a/dss.c b/dss.c
index eae8b3e..9589f9d 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -506,6 +506,7 @@ static int post_create_hook(void)
        char *cmd;
 
        if (!conf.post_create_hook_given) {
+               create_pid = 0;
                snapshot_creation_status = HS_READY;
                return 0;
        }