[asterisk-commits] tilghman: trunk r178375 - /trunk/main/asterisk.c

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


Author: tilghman
Date: Tue Feb 24 14:40:02 2009
New Revision: 178375

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=178375
Log:
The 3 possible errors with pipe(2) are all impossible in this situation.

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/asterisk.c?view=diff&rev=178375&r1=178374&r2=178375
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Tue Feb 24 14:40:02 2009
@@ -3302,7 +3302,7 @@
 			int cpipe[2];
 
 			/* PIPE signal ensures that astcanary dies when Asterisk dies */
-			pipe(cpipe);
+			(void) pipe(cpipe);
 			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