diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-06 15:59:23 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-06 15:59:23 +0000 |
commit | 2a1da1ec5f1693e9dfb228ff9314250ec69f3997 (patch) | |
tree | 3f7c8c74230cfe920f0acb49b0b2ebe1136e8019 /main/http.c | |
parent | 917121a57c8373d8fcf3e18ece18407447f95e4a (diff) |
make sure sockets are blocking when they should be blocking.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44567 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c index e76163105..1b7e08a66 100644 --- a/main/http.c +++ b/main/http.c @@ -504,6 +504,8 @@ static void *http_root(void *data) } ser = ast_calloc(1, sizeof(*ser)); if (ser) { + int flags = fcntl(fd, F_GETFL); + fcntl(fd, F_SETFL, flags & ~O_NONBLOCK); ser->fd = fd; memcpy(&ser->requestor, &sin, sizeof(ser->requestor)); if ((ser->f = fdopen(ser->fd, "w+"))) { |