2005-04-06 Dan Williams <dcbw@redhat.com>
Add debug code for socket/file descriptor leaks. We register every socket that we open (except for stuff in dhcpcd/) for tracking, and print out the list of sockets that we forgot to close on shutdown. This also consolidates about 4 places where we opened sockets into 1 function in NetworkManagerUtils.c git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@559 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -925,6 +925,8 @@ int main( int argc, char *argv[] )
|
||||
/* Wheeee!!! */
|
||||
g_main_loop_run (nm_data->main_loop);
|
||||
|
||||
nm_print_open_socks ();
|
||||
|
||||
/* Cleanup */
|
||||
libhal_ctx_shutdown (nm_data->hal_ctx, &dbus_error);
|
||||
|
||||
|
Reference in New Issue
Block a user