dma: don't set it->mailf too early
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 25 Aug 2009 00:22:04 +0000 (02:22 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 25 Aug 2009 00:24:39 +0000 (02:24 +0200)
commit122842a9604b367cf0449900f26c6c452fe6d4d6
tree2b8d8907ac215d60569ccf752365d3362b0531a3
parented16bb698b25995dbd3f3e95c18cf7b2c3cf414a
dma: don't set it->mailf too early

We may not set it->mailf in newspoolf(), or aquirespool() will not
(re-)open the mail file, leading to concurrent seeks.

Reported-by: Daniel Roethlisberger
DragonFly-Bug: <http://bugs.dragonflybsd.org/issue1462>
libexec/dma/spool.c