gethostbyname problem
From: oldami (oldami-no-spam_at_cotse.net)
Date: 07/28/04
- Next message: guapy: "error message with gv and pdf"
- Previous message: Omid: "Re: Make file"
- Next in thread: gordian: "Re: gethostbyname problem"
- Reply: gordian: "Re: gethostbyname problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Jul 2004 14:36:06 -0400 (EDT)
I have a daemon process that runs at startup and uploads
files periodically to a server. The system is setup to
automatically fail over to a modem line when the network
fails. This part works fine. After the modem connects,
the /etc/resolv.conf file is updated with the ISP provided
DNS server addresses. This is working also.
The problem is that my daemon fails on the gethostbyname call
after this happens. If I stop and restart the daemon after
the modem is connected, it works fine. It acts like the
gethostbyname function reads the resolv.conf file only
once when first called.
Does anyone know if this is the case?
Is there a work-around, other than stopping and starting
the daemon?
Many thanks for any help you can offer.
-- oldami - oldami@cotse.net
- Next message: guapy: "error message with gv and pdf"
- Previous message: Omid: "Re: Make file"
- Next in thread: gordian: "Re: gethostbyname problem"
- Reply: gordian: "Re: gethostbyname problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|