dma: lock temp files on creation
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 9 Jul 2009 12:37:16 +0000 (14:37 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 16 Jul 2009 14:13:05 +0000 (16:13 +0200)
commit855166cab18c755f280c77646aea8d1295931627
tree2b463697e791a72ad2575566482a1906052066ac
parent2922fd2bd6788906dceed0495a001f3d31177256
dma: lock temp files on creation

Lock the temporary files after creating them to protect from a "dma -q"
run at just the wrong time causing a double delivery attempt for
the same message.

Submitted-by: Peter Pentchev <roam@ringlet.net>
libexec/dma/dma.c