Commit a42530a2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Make sure that we disconnect from the event system when done.

parent c9d86132
...@@ -714,6 +714,14 @@ sub osload ($$) { ...@@ -714,6 +714,14 @@ sub osload ($$) {
} }
done: done:
print "osload: Done! There were $failures failures.\n"; print "osload: Done! There were $failures failures.\n";
#
# Since we use this in long running daemons, be sure to release
# the event system connection, or else we stack up lots of handles
# and socket connections to the event server.
#
event_unregister($evhandle)
if (defined($evhandle));
if ($asyncmode) { if ($asyncmode) {
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment