[asterisk-commits] tilghman: branch 1.6.0 r178382 - in /branches/1.6.0: ./ main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 24 14:53:27 CST 2009


Author: tilghman
Date: Tue Feb 24 14:53:27 2009
New Revision: 178382

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=178382
Log:
Merged revisions 178381 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178381 | tilghman | 2009-02-24 14:52:44 -0600 (Tue, 24 Feb 2009) | 2 lines
  
  Apparently, a void cast doesn't override warn_unused_result.
........

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

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/asterisk.c?view=diff&rev=178382&r1=178381&r2=178382
==============================================================================
--- branches/1.6.0/main/asterisk.c (original)
+++ branches/1.6.0/main/asterisk.c Tue Feb 24 14:53:27 2009
@@ -3117,7 +3117,10 @@
 			int cpipe[2];
 
 			/* PIPE signal ensures that astcanary dies when Asterisk dies */
-			(void) pipe(cpipe);
+			if (pipe(cpipe)) {
+				fprintf(stderr, "Unable to open pipe for canary process: %s\n", strerror(errno));
+				exit(1);
+			}
 			canary_pipe = cpipe[0];
 
 			snprintf(canary_filename, sizeof(canary_filename), "%s/alt.asterisk.canary.tweet.tweet.tweet", ast_config_AST_RUN_DIR);




More information about the asterisk-commits mailing list