]> git.puffer.fish Git - mirror/frr.git/commit
lib: use fsync() for config writes, plug fd leak 190/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 Feb 2017 15:14:10 +0000 (16:14 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 9 Feb 2017 13:25:55 +0000 (14:25 +0100)
commit1520d0aca9acf42faf0433cbe8f66ef9cd97bd0e
tree253490726e4fca72b9391e81dbf146b0e005cad2
parentcf80f28161ec05430723d6fb7bc5928bdc21f825
lib: use fsync() for config writes, plug fd leak

sync() has a HUGE impact on systems that perform actual I/O, i.e. real
servers...

Also, we were leaking a fd on each config write ever since
c5e69a0 "lib/vty: add separate output fd support to VTYs"
(by myself :( ...)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command.c
lib/vty.c