[asterisk-commits] file: branch 1.2 r44168 - /branches/1.2/io.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 2 10:22:28 MST 2006


Author: file
Date: Mon Oct  2 12:22:27 2006
New Revision: 44168

URL: http://svn.digium.com/view/asterisk?rev=44168&view=rev
Log:
Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)

Modified:
    branches/1.2/io.c

Modified: branches/1.2/io.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/io.c?rev=44168&r1=44167&r2=44168&view=diff
==============================================================================
--- branches/1.2/io.c (original)
+++ branches/1.2/io.c Mon Oct  2 12:22:27 2006
@@ -247,7 +247,7 @@
 			ioc->fds[x].events = 0;
 			ioc->fds[x].revents = 0;
 			ioc->needshrink = 1;
-			if (!ioc->current_ioc)
+			if (ioc->current_ioc == -1)
 				io_shrink(ioc);
 			return 0;
 		}



More information about the asterisk-commits mailing list