diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-02-24 20:52:44 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-02-24 20:52:44 +0000 |
commit | de3d9f829a564ef5b8b0252ff96f428511dbdc6d (patch) | |
tree | 003419fd13d2986e0f3a081b27fce5f772b2a4d0 /main | |
parent | a8630432c903486b2b060208e84b044fb5c55d7e (diff) |
Apparently, a void cast doesn't override warn_unused_result.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/asterisk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 4f86372d7..7c50ff16c 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -3302,7 +3302,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); |