diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-09 23:04:16 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-09 23:04:16 +0200 |
commit | 3720a61daf2e03e42e34902c2636ce3e3d6b8485 (patch) | |
tree | 6208f33c94578dbfaf39b5b108f7745190bb2c3b /include/applet_metadata.h | |
parent | ec1ea16337623824e3e71bb5dc0e011259664d7e (diff) | |
download | busybox-3720a61daf2e03e42e34902c2636ce3e3d6b8485.tar.gz |
ifupdown: rewrite state file atomically
By user's request.
Decided to not use fcntl(F_SETLKW) in lieu of problems with locking
on networked filesystems. The existence of /var/run/ifstate.new
is treated as a write lock. rename() provides atomicity.
function old new delta
ifupdown_main 1019 1122 +103
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/applet_metadata.h')
0 files changed, 0 insertions, 0 deletions