]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
The 3 possible errors with pipe(2) are all impossible in this situation.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 24 Feb 2009 20:40:02 +0000 (20:40 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 24 Feb 2009 20:40:02 +0000 (20:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178375 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index 0c001c97db0163c436aebc79c8129069718bcdd5..4f86372d73a657f5237f3cda4f9b80acafb91b29 100644 (file)
@@ -3302,7 +3302,7 @@ int main(int argc, char *argv[])
                        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);