~ubuntu-branches/ubuntu/hardy/lighttpd/hardy-updates

« back to all changes in this revision

Viewing changes to src/fdevent_freebsd_kqueue.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2006-12-08 14:40:42 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061208144042-3z5kr9pe0kya5lgu
Tags: 1.4.13-6ubuntu1
* Merge from debian unstable, remaining changes:
  - Replace Depends: on perl with Depends: on libterm-readline-perl-perl

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
                return -1;
50
50
        }
51
 
        
 
51
 
52
52
        return -1;
53
53
}
54
54
 
65
65
 
66
66
        ts.tv_sec  = 0;
67
67
        ts.tv_nsec = 0;
68
 
        
 
68
 
69
69
        ret = kevent(ev->kq_fd,
70
70
                     &kev, 1,
71
71
                     NULL, 0,
77
77
 
78
78
                return -1;
79
79
        }
80
 
        
 
80
 
81
81
        if (filter == EVFILT_READ) {
82
82
                bitset_set_bit(ev->kq_bevents, fd);
83
83
        } else {
124
124
        } else if (e == EVFILT_WRITE) {
125
125
                events |= FDEVENT_OUT;
126
126
        }
127
 
        
 
127
 
128
128
        e = ev->kq_results[ndx].flags;
129
129
 
130
130
        if (e & EV_EOF) {
152
152
        if (-1 == (ev->kq_fd = kqueue())) {
153
153
                fprintf(stderr, "%s.%d: kqueue failed (%s), try to set server.event-handler = \"poll\" or \"select\"\n",
154
154
                        __FILE__, __LINE__, strerror(errno));
155
 
                
 
155
 
156
156
                return -1;
157
157
        }
158
 
        
 
158
 
159
159
        return 0;
160
160
}
161
161
 
186
186
        if (-1 == (ev->kq_fd = kqueue())) {
187
187
                fprintf(stderr, "%s.%d: kqueue failed (%s), try to set server.event-handler = \"poll\" or \"select\"\n",
188
188
                        __FILE__, __LINE__, strerror(errno));
189
 
                
 
189
 
190
190
                return -1;
191
191
        }
192
192