Fix error handling
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 20 Jul 2011 20:40:41 +0000 (16:40 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 20 Jul 2011 20:40:41 +0000 (16:40 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng/commands/create.c

index 9fe82514097e9117ce662e4b6c2fa559fa1f4322..dbed8f021568f53c38b37432a078639f911fa77d 100644 (file)
@@ -109,6 +109,9 @@ static int create_session()
        /* Init lttng session config */
        ret = config_init(session_name);
        if (ret < 0) {
+               if (ret == -1) {
+                       ret = CMD_ERROR;
+               }
                goto error;
        }
 
This page took 0.025754 seconds and 4 git commands to generate.