collectdmon: close fd when dup2 fails
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 2 Apr 2016 13:35:59 +0000 (15:35 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 2 Apr 2016 13:41:33 +0000 (15:41 +0200)
commit4d7bc9c5bfc24bbd56edbb1daa87c76fedc858d0
tree93f8d25d3a8d397292f745bfb1750fcbbae01489
parent3dc0454f7bee3e852171d1f6944891693364ee01
collectdmon: close fd when dup2 fails

Fixed CID #73119

Fix a typo in the error message while we're at it.
src/collectdmon.c