[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BIND error messages
- To: marco@yukon.cren.org
- Subject: Re: BIND error messages
- From: Matti Aarnio <mea@utu.fi>
- Date: Thu, 26 Jan 1995 21:34:08 +0200 (EET)
- Cc: zmailer@nic.funet.fi
- In-Reply-To: <95Jan26.110443-0500_(est).79750-4@yukon.cren.org> from "Marco Hernandez" at Jan 26, 95 11:04:34 am
> 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 ?)
> /Marco
/Matti Aarnio <mea@nic.funet.fi> <mea@utu.fi>