Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/lib/pthreadpool/pthreadpool.c

    r745 r751  
    288288 */
    289289
    290 int pthreadpool_finished_job(struct pthreadpool *pool)
    291 {
    292         int result;
     290int pthreadpool_finished_job(struct pthreadpool *pool, int *jobid)
     291{
     292        int ret_jobid;
    293293        ssize_t nread;
    294294
     
    297297
    298298        while ((nread == -1) && (errno == EINTR)) {
    299                 nread = read(pool->sig_pipe[0], &result, sizeof(int));
     299                nread = read(pool->sig_pipe[0], &ret_jobid, sizeof(int));
    300300        }
    301301        if (nread == -1) {
     
    305305                return EINVAL;
    306306        }
    307         return result;
     307        *jobid = ret_jobid;
     308        return 0;
    308309}
    309310
Note: See TracChangeset for help on using the changeset viewer.