]> git.puffer.fish Git - mirror/frr.git/commit
lib: use fsync() for config writes, plug fd leak 189/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 11:54:25 +0000 (12:54 +0100)
commit056cfe496e84eed72c4d2226a7a405e5263cdc7a
treea6925f69a2546534b2cdb08cd8cd56624974cabb
parente84aba82ab3ab5192eecaa4a210bf1fcf7aaceda
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