summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-08-18 23:58:51 +0000
committerJoshua Colp <jcolp@digium.com>2007-08-18 23:58:51 +0000
commit5923c7fe8c778c308a527cb3f8810b1fba5e326c (patch)
treee37319e4bc3621bd1b9a9aa1388ba828077e17e4 /configure
parent447fada0c12a16bd8b667b05ac4a38ec8e78f8d6 (diff)
Actually check the return value of epoll_create to make sure it works.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 9aa6cc7e2..5c668a1c9 100755
--- a/configure
+++ b/configure
@@ -15636,7 +15636,11 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
-epoll_create(10);
+int res = epoll_create(10);
+ if (res < 0)
+ return 1;
+ close (res);
+ return 0;
;
return 0;
}