tried this patch

echo "~WC" > /dev/cuaR00

worked ok when I tried this a lot of times quickly, but when I try to send
larger files, it panics again :

[EMAIL PROTECTED]:~ [0]# cat 1.txt > /dev/cuaR00
[EMAIL PROTECTED]:~ [0]# cat 1.txt > /dev/cuaR00

^^^^ after this the same panic occured

the size of file is 194 bytes. same thing occured when I sent only once the
file of size=1164

after reboot:

[EMAIL PROTECTED]:~ [0]# grep panic /var/log/messages
Jan 26 17:38:49 pl2 savecore: reboot after panic: device_unbusy: called for
non-busy device rp0

also noticed the following :
when trying

[EMAIL PROTECTED]:~ [0]# cat /root/1.txt|cu -lcuaR00
Connected
~.
~.^C
^^^ cu hang

[EMAIL PROTECTED]:~ [1]# ps xau|grep cu
root    733  0.0  0.0  1284   972  p0- I     5:55PM   0:00.00 cu -lcuaR00

[EMAIL PROTECTED]:~ [0]# killall cu

And cu is killed, with no panic.

Cheers
Vit

2006/1/26, John Baldwin <[EMAIL PROTECTED]>:
>
> On Thursday 26 January 2006 05:54, Vitaliy Skakun wrote:
> > Hi everybody!
> >
> > One problem arised:
> >
> > when doing in the shell
> > echo "~WS" > /dev/cuaR00
> >
> > for several times as quick as I can, I get panic with the following
> > message: panic: device_unbusy: called for non-busy device rp0
> >
> > same thing when trying to send data to /dev/cuaR00 via JDK File streams
> ...
> >
> > :(((
> >
> > (Some kind of barcode printers are attached to this multiport card)
> >
> > Any help will be kindly accepted.
> >
> > Cheers
> > Vit
>
> Try the attached patch.  tty's don't use D_TRACKCLOSE but rp(4) was
> expecting
> that rpclose() was called on every close, not just the last close.
>
> --
> John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
>
>
>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to