diff options
author | Ben Pfaff <blp@nicira.com> | 2009-10-15 10:42:59 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-10-23 11:52:05 -0700 |
commit | dc81071d9fe21beaead51a9c0a8d87fbefbfcf56 (patch) | |
tree | 3366c40e379e70881b5e0aaffb6ebd0a78c7bf6c /lib/timeval.h | |
parent | e7cfedd6dedab619603ddc3c3832a2b7a0f82f89 (diff) | |
download | openvswitch-dc81071d9fe21beaead51a9c0a8d87fbefbfcf56.tar.gz |
cfg: Fix implementation of timeout in attempting to lock the config file.
Without removing SA_RESTART from the SIGALRM handler, the fcntl call will
never return, even after the signal handler is invoked and returns.
We haven't seen a problem in practice, at least not recently, but that's
probably just luck combined with not holding the configuration file lock
for very long.
Diffstat (limited to 'lib/timeval.h')
-rw-r--r-- | lib/timeval.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/timeval.h b/lib/timeval.h index 7da3b383b..5ba903e3a 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -41,6 +41,8 @@ BUILD_ASSERT_DECL(TYPE_IS_SIGNED(time_t)); #define TIME_UPDATE_INTERVAL 100 void time_init(void); +void time_disable_restart(void); +void time_enable_restart(void); void time_postfork(void); void time_refresh(void); time_t time_now(void); |