Re: svn commit: r229966 - head/lib/libutil

2012-01-11 Thread Pawel Jakub Dawidek
On Wed, Jan 11, 2012 at 04:35:26PM +, Guy Helmer wrote: > Author: ghelmer > Date: Wed Jan 11 16:35:26 2012 > New Revision: 229966 > URL: http://svn.freebsd.org/changeset/base/229966 > > Log: > jilles pointed out that O_CLOEXEC could be used in the open(2) flags > rather than using fcntl(2)

svn commit: r229966 - head/lib/libutil

2012-01-11 Thread Guy Helmer
Author: ghelmer Date: Wed Jan 11 16:35:26 2012 New Revision: 229966 URL: http://svn.freebsd.org/changeset/base/229966 Log: jilles pointed out that O_CLOEXEC could be used in the open(2) flags rather than using fcntl(2) later, and in addition to saving a system call, removes a possible race w