jim.c: Squelch a coverity false positive

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Add test
aio: Fix conflict between onexception and writable

onexecption was using the wrong location

Signed-off-by: Steve Bennett <steveb@workware.net.au>
event.test: Fix test on Haiku

Haiku doesn't seem to trigger the "readable" event
on a connected socket with no data, so use the "writable" event instead
since this seems to work on all platforms.

Signed-off-by: Steve Bennett <steveb@workware.net.au>