Changeset 1593acf93a59dbbeca2b47f6da6042c9ca5ed3f9

Show
Ignore:
Timestamp:
05/14/11 19:48:30 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1305402510 -0400
git-parent:

[0477cc94a4188def7b6882f43e6fd222237071ea]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1305402510 -0400
Message:

these need to be detached as we'll never join on them

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_jobq.c

    rec0f79b r1593acf  
    159159     * if we did something we weren't supposed to. */ 
    160160    pthread_t tid; 
     161    pthread_attr_t tattr; 
    161162    noitL(eventer_deb, "Starting queue[%s] thread now at %d\n", 
    162163          jobq->queue_name, jobq->concurrency); 
    163     pthread_create(&tid, NULL, eventer_jobq_consumer_pthreadentry, jobq); 
     164    pthread_attr_init(&tattr); 
     165    pthread_attr_setdetachstate(&tattr, PTHREAD_CREATE_DETACHED); 
     166    pthread_create(&tid, &tattr, eventer_jobq_consumer_pthreadentry, jobq); 
    164167  } 
    165168  noitL(eventer_deb, "jobq_queue[%s] pending cancels [%d/%d]\n",