Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2001 16:16:35 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        cjclark@alum.mit.edu, freebsd-bugs@FreeBSD.ORG, brian@freebsd-services.com
Subject:   Re: bin/29966: cleanup of ppp server socket on unclean startup 
Message-ID:  <200108231516.f7NFGZg72110@hak.lan.Awfulhak.org>
In-Reply-To: Message from Dmitry Morozovsky <marck@rinet.ru>  of "Thu, 23 Aug 2001 14:16:12 %2B0400." <20010823141058.J65645-100000@woozle.rinet.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
> CJC> Does your purgedir() not look like this?
> 
> oops. seems I miss something during mergemaster. Yes, now it should remove
> anything which is not directory. So, my trouble gone away. The only thing
> I suppose is useful according to this issue now is change ppp.conf both in
> /etc/ppp and in examples to move example server sockets to /var/run.

FWIW, purgedir() was broken in 4.3-RELEASE.  My MFC request fixing 
this during the 4.3 code-slush was refused.  4.3 went out with a 
broken cleaning of /var/run/ :(

I don't think the examples should be changed to say /var/run as 
/var/run is only writable by root and ppp's diagnostic socket is 
created with the privileges of the user that ran ppp.

If bind() maybe returned EADDRNOTAVAIL instead of EADDRINUSE for 
stale socket files, maybe ppp could do something about this...

> Thank you again.
> 
> Sincerely,
> D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
> ------------------------------------------------------------------------
> *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
> ------------------------------------------------------------------------

-- 
Brian <brian@freebsd-services.com>                <brian@Awfulhak.org>
      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108231516.f7NFGZg72110>