[asterisk-commits] tilghman: branch 1.6.2 r287934 - in /branches/1.6.2: ./ main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 21 14:07:56 CDT 2010


Author: tilghman
Date: Tue Sep 21 14:07:53 2010
New Revision: 287934

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287934
Log:
Merged revisions 287933 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r287933 | tilghman | 2010-09-21 14:07:07 -0500 (Tue, 21 Sep 2010) | 2 lines
  
  Less than zero is an error, not any non-zero value.
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/asterisk.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: branches/1.6.2/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/asterisk.c?view=diff&rev=287934&r1=287933&r2=287934
==============================================================================
--- branches/1.6.2/main/asterisk.c (original)
+++ branches/1.6.2/main/asterisk.c Tue Sep 21 14:07:53 2010
@@ -3354,7 +3354,7 @@
 		}
 
 		fd2 = (l.rlim_cur > sizeof(readers) * 8 ? sizeof(readers) * 8 : l.rlim_cur) - 1;
-		if (dup2(fd, fd2)) {
+		if (dup2(fd, fd2) < 0) {
 			ast_log(LOG_WARNING, "Cannot open maximum file descriptor %d at boot? %s\n", fd2, strerror(errno));
 			break;
 		}




More information about the asterisk-commits mailing list