X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=hello%2Fhello.c;h=b4f5216ed9bc8712ca8ff66abf774fd3063fc794;hb=fbd8191b00521bbe7e52a6d1ff4bb814708f06ba;hp=ee7992b00d006aa9d264a634b268b30680a55d52;hpb=e541a28d5fdb3b64e972189458d7b2269d1603d4;p=ust.git diff --git a/hello/hello.c b/hello/hello.c index ee7992b..b4f5216 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -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"); }