Subject: Re: ppp0 --> tcflush failed
To: None <netbsd-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-users
Date: 10/20/2006 14:47:08
In article <20061020120734.298800@gmx.net>,
Caloro Maurizio <mauric@gmx.ch> wrote:
>
>Hello,
>
>I have Installed my analog modem on me 166 machine,
>now after i made the dialin i see that interrupt with the following message
>
>" tcflush failed: Bad file descriptor "
>
>
>nettrust# uname -rsa
>NetBSD nettrust 3.0.1 NetBSD 3.0.1 (GENERIC) #0: Thu Jul 13 23:43:47 UTC
>2006 
>builds@b3.netbsd.org:/home/builds/ab/netbsd-3-0-1-RELEASE/i386/200607131826Z-obj/
>		    
>/home/builds/ab/netbsd-3-0-1-RELEASE/src/sys/arch/i386/compile/GENERIC
>i386
>
>nettrust# ifconfig -C
>bridge vlan gif gre tun tap strip sl pppoe ppp lo
>
>Oct 20 12:11:04 nettrust pppd[100]: Serial connection established.
>Oct 20 12:11:04 nettrust pppd[100]: Using interface ppp0
>Oct 20 12:11:04 nettrust pppd[100]: Connect: ppp0 <--> /dev/tty01
>Oct 20 12:11:04 nettrust pppd[100]: tcflush failed: Bad file descriptor
>Oct 20 12:11:04 nettrust pppd[100]: ioctl(TIOCSETD): Bad file descriptor
>Oct 20 12:11:04 nettrust pppd[100]: Couldn't restore device fd flags:
>Bad file descriptor
>Oct 20 12:11:05 nettrust pppd[100]: Exit.
>
>for any help iam whery happy
>thanks 

Can you try using the pppd from -current?

christos