X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=2d4341d3b418cd4957b8ab2efc95fbf564f6520e;hb=c5fdc88852bc232e24fb3941ea5d5719b4490a87;hp=dbd39657e6f507585b8f2e9c4a29115dd96917e4;hpb=dd5c82ed4531106d357001debf3073572ee84500;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index dbd3965..2d4341d 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -774,15 +774,18 @@ void create_listener(void) { #ifdef USE_CLONE static char listener_stack[16384]; + int result; #else pthread_t thread; #endif - if(have_listener) + if(have_listener) { + WARN("not creating listener because we already had one"); return; + } #ifdef USE_CLONE - result = clone(listener_main, listener_stack+sizeof(listener_stack)-1, CLONE_FS | CLONE_FILES | CLONE_VM | CLONE_SIGHAND | CLONE_THREAD, NULL); + result = clone((int (*)(void *)) listener_main, listener_stack+sizeof(listener_stack)-1, CLONE_FS | CLONE_FILES | CLONE_VM | CLONE_SIGHAND | CLONE_THREAD, NULL); if(result == -1) { perror("clone"); return;