ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libeio/eio.c
(Generate patch)

Comparing cvsroot/libeio/eio.c (file contents):
Revision 1.19 by root, Tue Jun 17 23:34:20 2008 UTC vs.
Revision 1.21 by root, Sat Jun 21 00:13:13 2008 UTC

330 330
331static void etp_atfork_child (void) 331static void etp_atfork_child (void)
332{ 332{
333 ETP_REQ *prv; 333 ETP_REQ *prv;
334 334
335 while (prv = reqq_shift (&req_queue)) 335 while ((prv = reqq_shift (&req_queue)))
336 ETP_DESTROY (prv); 336 ETP_DESTROY (prv);
337 337
338 while (prv = reqq_shift (&res_queue)) 338 while ((prv = reqq_shift (&res_queue)))
339 ETP_DESTROY (prv); 339 ETP_DESTROY (prv);
340 340
341 while (wrk_first.next != &wrk_first) 341 while (wrk_first.next != &wrk_first)
342 { 342 {
343 etp_worker *wrk = wrk_first.next; 343 etp_worker *wrk = wrk_first.next;
903 int memlen = 4096; 903 int memlen = 4096;
904 int memofs = 0; 904 int memofs = 0;
905 int res = 0; 905 int res = 0;
906 906
907 X_LOCK (wrklock); 907 X_LOCK (wrklock);
908 /* the corresponding closedir is in ETP_WORKER_CLEAR */
908 self->dirp = dirp = opendir (req->ptr1); 909 self->dirp = dirp = opendir (req->ptr1);
909 req->flags |= EIO_FLAG_PTR2_FREE; 910 req->flags |= EIO_FLAG_PTR2_FREE;
910 req->ptr2 = names = malloc (memlen); 911 req->ptr2 = names = malloc (memlen);
911 X_UNLOCK (wrklock); 912 X_UNLOCK (wrklock);
912 913

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines