event: Cleanups and more comments
authorMarko Kreen <markokr@gmail.com>
Tue, 14 Apr 2009 20:59:40 +0000 (23:59 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 15 Apr 2009 16:14:32 +0000 (19:14 +0300)
commitc70ea7356bbeb21a27b629d2079fbd0928198524
tree872ed5f26743c9db46c9cf7a57dc2938a6662a98
parentb470b9095304e9d3e01d8b18f71720a1f2a0ea5b
event: Cleanups and more comments

- more comments
- event_add: dont allow flags=0 and no timeout
- signal callback: dont do sig_close() there on random errors,
  seems too dangerous.
- signal callback: just in case, drain the socket in loop
usual/event.c
usual/event.h