Changeset 53aeed588114b6e346057869dab719cefe3000c9

Show
Ignore:
Timestamp:
11/24/09 20:50:23 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1259095823 +0000
git-parent:

[abe7edbdd20777ec3d02b2f26963cdffdbff79e3]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1259095823 +0000
Message:

create the jlog streamer threads detached

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_jlog_listener.c

    r5bb306c r53aeed5  
    205205  eventer_t newe; 
    206206  pthread_t tid; 
     207  pthread_attr_t tattr; 
    207208  int newmask = EVENTER_READ | EVENTER_EXCEPTION; 
    208209  acceptor_closure_t *ac = closure; 
     
    305306  newe = eventer_alloc(); 
    306307  memcpy(newe, e, sizeof(*e)); 
    307   if(pthread_create(&tid, NULL, noit_jlog_thread_main, newe) == 0) { 
     308  pthread_attr_init(&tattr); 
     309  pthread_attr_setdetachstate(&tattr, PTHREAD_CREATE_DETACHED); 
     310  if(pthread_create(&tid, &tattr, noit_jlog_thread_main, newe) == 0) { 
    308311    return 0; 
    309312  }