Date: Sat, 7 Oct 2006 14:56:54 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 107418 for review Message-ID: <200610071456.k97Eusew017411@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107418 Change 107418 by rdivacky@rdivacky_witten on 2006/10/07 14:56:48 Fix SLIST handling (still untested). Affected files ... .. //depot/projects/linuxolator/src/sys/kern/sysv_sem.c#4 edit Differences ... ==== //depot/projects/linuxolator/src/sys/kern/sysv_sem.c#4 (text+ko) ==== @@ -227,6 +227,7 @@ } for (i = 0; i < seminfo.semmni; i++) mtx_init(&sema_mtx[i], "semid", NULL, MTX_DEF); + SLIST_INIT(&semu_list); mtx_init(&sem_mtx, "sem", NULL, MTX_DEF); semexit_tag = EVENTHANDLER_REGISTER(process_exit, semexit_myhook, NULL, EVENTHANDLER_PRI_ANY); @@ -331,6 +332,8 @@ suptr = malloc(seminfo.semusz, M_SEM, M_WAITOK); refcount_init(&suptr->refcount, 1); + SLIST_INSERT_HEAD(&semu_list, suptr, un_next); + PROC_LOCK(td->td_proc); td->td_proc->p_semundo = suptr; PROC_UNLOCK(td->td_proc);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610071456.k97Eusew017411>