aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-24 20:53:27 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-24 20:53:27 +0000
commitf2660db5ccc0fdbe2821ff1412bbb8c0f1dbac13 (patch)
treede3997493541ef07cc763c739efa69b5e15a4c6d /main
parent31b1f86e752ec3730ee1d5f249205607e4a34af3 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@178382 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/asterisk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index a33c9a18a..e56b94737 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3117,7 +3117,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);