Changeset ccb8c8a for example/io
- Timestamp:
 - Dec 14, 2020, 3:35:17 PM (5 years ago)
 - Branches:
 - ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
 - Children:
 - 42f6e07
 - Parents:
 - 97229d6
 - File:
 - 
      
- 1 edited
 
- 
          
  example/io/simple/server_epoll.c (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
example/io/simple/server_epoll.c
r97229d6 rccb8c8a 88 88 } 89 89 90 ev.events = EPOLL IN | EPOLLONESHOT;90 ev.events = EPOLLOUT | EPOLLIN | EPOLLONESHOT; 91 91 ev.data.u64 = (uint64_t)˚ 92 92 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ring.ring_fd, &ev) == -1) { … … 99 99 100 100 while(1) { 101 BLOCK: 101 BLOCK:; 102 102 int nfds = epoll_wait(epollfd, events, MAX_EVENTS, -1); 103 103 if (nfds == -1) {  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.