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
......@@ -715,6 +715,14 @@ sub osload ($$) {
done:
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) {
#
# We are a child. Send back the results to the parent side
......
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