Changeset 456 for trunk/server/lib/util/blocking.c
- Timestamp:
- Jun 7, 2010, 9:08:40 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/server/lib/util/blocking.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/util/blocking.c
r414 r456 54 54 if((val = fcntl(fd, F_GETFL, 0)) == -1) 55 55 return -1; 56 56 57 if(set) /* Turn blocking on - ie. clear nonblock flag */ 57 58 val &= ~FLAG_TO_SET; … … 59 60 val |= FLAG_TO_SET; 60 61 return fcntl( fd, F_SETFL, val); 62 63 64 65 66 67 68 69 61 70 #undef FLAG_TO_SET 62 71 }
Note:
See TracChangeset
for help on using the changeset viewer.
