aboutsummaryrefslogtreecommitdiff
path: root/xenserver
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-10-15 10:39:10 -0700
committerBen Pfaff <blp@nicira.com>2009-10-15 10:43:36 -0700
commit03fbffbda4d36188944a4df39eace449a0c306dd (patch)
treea5a1de48e38556fca5be3c83744da237f1851d41 /xenserver
parent43a6c464efaf271411c8e2d19357e11bf6ff5afa (diff)
Make sure that time advances in a daemon between calls to time_refresh().
Open vSwitch uses an interval timer signal to tell it that its cached idea of the current time has expired. However, this didn't work in a daemon detached from the foreground session (invoked with --detach) because a child created with fork() does not inherit the parent's interval timer and we did not re-set it after calling fork(). This commit fixes the problem by setting the interval timer back up after calling fork() from daemonize(). This fix is based on code inspection (which was then verified to be correct through testing). It may not fix any actual problems in practice, because time_refresh() is called every time through the poll loop, and the poll loop typically runs more quickly than the periodic timer fires (1 ms or so average in ovs-vswitchd, vs. 100 ms timer interval).
Diffstat (limited to 'xenserver')
0 files changed, 0 insertions, 0 deletions