Changeset 751 for trunk/server/source3/lib/pthreadpool/pthreadpool.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/pthreadpool/pthreadpool.c
r745 r751 288 288 */ 289 289 290 int pthreadpool_finished_job(struct pthreadpool *pool )291 { 292 int re sult;290 int pthreadpool_finished_job(struct pthreadpool *pool, int *jobid) 291 { 292 int ret_jobid; 293 293 ssize_t nread; 294 294 … … 297 297 298 298 while ((nread == -1) && (errno == EINTR)) { 299 nread = read(pool->sig_pipe[0], &re sult, sizeof(int));299 nread = read(pool->sig_pipe[0], &ret_jobid, sizeof(int)); 300 300 } 301 301 if (nread == -1) { … … 305 305 return EINVAL; 306 306 } 307 return result; 307 *jobid = ret_jobid; 308 return 0; 308 309 } 309 310
Note:
See TracChangeset
for help on using the changeset viewer.