ust: be able to list markers using ust
[ust.git] / hello / hello.c
index ee7992b00d006aa9d264a634b268b30680a55d52..b4f5216ed9bc8712ca8ff66abf774fd3063fc794 100644 (file)
@@ -58,7 +58,7 @@ int consumer(void *arg)
        }
 
        consumer_channels = (struct consumer_channel *) malloc(trace->nr_channels * sizeof(struct consumer_channel));
-       if(consumer_channels == NULL) {
+if(consumer_channels == NULL) {
                ERR("malloc returned NULL");
                return 1;
        }
@@ -148,7 +148,7 @@ void start_consumer(void)
 {
        int result;
 
-       result = clone(consumer, consumer_stack+sizeof(consumer_stack)-1, CLONE_FS | CLONE_FILES | CLONE_VM, NULL);
+       result = clone(consumer, consumer_stack+sizeof(consumer_stack)-1, CLONE_FS | CLONE_FILES | CLONE_VM | CLONE_SIGHAND | CLONE_THREAD, NULL);
        if(result == -1) {
                perror("clone");
        }
This page took 0.033522 seconds and 4 git commands to generate.