*** listener.c.orig	Tue Oct 10 09:07:21 2000
--- listener.c	Tue Apr 17 06:05:43 2001
***************
*** 510,515 ****
--- 510,526 ----
  			ret = MI_FAILURE;
  			break;
  		}
+ 		if (!ValidSocket( listenfd ))
+ 		{	/* ASV: 17-Apr-2001
+ 			* after signal (for example SIGINT) listenfd == -1 and 
+ 			* next FD_ISSET generate SIGBUS. 
+ 			* This "fast hand" patch only prevent against
+ 			* most BUT NOT ALL SITUATION - signal may be occured
+ 			* after this check and fail happens again
+ 			*/
+ 		   	ret = MI_SUCCESS;
+ 			continue;
+ 		}
  		if (!FD_ISSET(listenfd, &readset))
  		{
  			/* some error: just stop for now... */
