DragonFly commits List (threaded) for 2009-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
DragonFly-2.2.1.25.gab632 DragonFly_RELEASE_2_2 libexec/dma dma.c
commit ab6326531511912bacbf9176d444f0f3b214e8bd
Author: Simon Schubert <simon.schubert@epfl.ch>
Date: Thu Jul 9 23:24:35 2009 +0200
dma: prevent races from sharing fd between children
On fork, fds are shared between children. If two processes work on
different recipients, but on the same queue file, they might get
confused when the fd (and thus the offset) is shared. Prevent this by
re-opening the queue file after fork.
Reported-by: Daniel Roethlisberger <daniel@roe.ch>
Summary of changes:
libexec/dma/dma.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab6326531511912bacbf9176d444f0f3b214e8bd
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]