[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BIND error messages



> > Greetings:
> > 
> > 	Scheduler log (ZM 2.99.10) reports the following:
> > 
> > 		bind: Address already in use
> > 
> > 	Has anyone worked around this yet ???
> 
> 	Yup, because this situation relates to following
> 	code-fragment:
> 
> ----------------------------------------------------------------
>         if ((querysocket = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
>           perror("socket");
>           return;
>         }
>         setsockopt(querysocket, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
> 
>         if (bind(querysocket, (struct sockaddr *)&sad, sizeof sad) < 0) {
> 	... err handling ...
> ----------------------------------------------------------------
> 
> 	I do say, that you had two  schedulers  running.
> 	(Perhaps one in debugger ?)
> 

Nope ... Only one scheduler...  At the moment only one scheduler and
getting that error in the log :-( ...

/mh



> > /Marco
> 
> 	/Matti Aarnio	<mea@nic.funet.fi> <mea@utu.fi>