From cb2d75d4b2d378ec002fdc4bbece3f15af5d85a0 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 24 Feb 2009 20:54:06 +0000 Subject: [PATCH] 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. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@178383 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/asterisk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/asterisk.c b/main/asterisk.c index 847e75dbab..486b583764 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3143,7 +3143,10 @@ int main(int argc, char *argv[]) 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);