The common way (and this is what inetd uses) is to use a select on the file descriptor after the listen but before you actually call accept to see if there is anything there to accept. -Ron