~ubuntu-branches/ubuntu/natty/lighttpd/natty

« back to all changes in this revision

Viewing changes to src/fdevent_poll.c

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyżaniak (eloy)
  • Date: 2009-10-30 17:37:29 UTC
  • mto: (6.1.4 squeeze)
  • mto: This revision was merged to the branch mainline in revision 50.
  • Revision ID: james.westby@ubuntu.com-20091030173729-ehmsdiba9nkcd0j7
Tags: upstream-1.4.24
Import upstream version 1.4.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "fdevent.h"
 
2
#include "buffer.h"
 
3
 
1
4
#include <sys/types.h>
2
5
 
3
6
#include <unistd.h>
8
11
#include <signal.h>
9
12
#include <fcntl.h>
10
13
 
11
 
#include "fdevent.h"
12
 
#include "settings.h"
13
 
#include "buffer.h"
14
 
 
15
14
#ifdef USE_POLL
16
15
static void fdevent_poll_free(fdevents *ev) {
17
16
        free(ev->pollfds);
132
131
        if (poll_r & POLLNVAL) r |= FDEVENT_NVAL;
133
132
        if (poll_r & POLLPRI) r |= FDEVENT_PRI;
134
133
 
135
 
        return ev->pollfds[ndx].revents;
 
134
        return r;
136
135
}
137
136
 
138
137
static int fdevent_poll_event_get_fd(fdevents *ev, size_t ndx) {