On Wednesday 18 February 2009 3:18:03 am Bruce Simpson wrote:
> John Baldwin wrote:
> > Author: jhb
> > Date: Tue Feb 17 19:57:52 2009
> > New Revision: 188727
> > URL: http://svn.freebsd.org/changeset/base/188727
> >
> > Log:
> >   MFC: Rework the lifetime management of the kernel implementation of 
POSIX
> >   semaphores.  Specifically, semaphores are now represented as new file
> >   descriptor type that is set to close on exec.  This removes the need for
> >   all of the manual process reference counting (and fork, exec, and exit
> >   event handlers) as the normal file descriptor operations handle all of
> >   that for us nicely.  It is also suggested as one possible implementation
> >   in the spec and at least one other OS (OS X) uses this approach.
> 
> FYI:
> This change *may* fix Python 2.6's 'multiprocessing' module on FreeBSD 
> 7-STABLE, which is known to have problems there; it depends on POSIX 
> semaphores to synchronize its IPC between different fork()'s of the 
> Python interpreter.
> 
> If anyone else has an interest in ths they may wish to test, if not, I 
> will try to get around to it eventually.

When Kris tested it, it made things significantly better.  I'm not sure if it 
resolved all the issues though.

-- 
John Baldwin
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to