Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: serial device



Reply.
> Can ou post a little more info please. Is this something you wrote?, if
> so, what arguments are you using to open the device. If not, are you sure
> no locks exist in /var/lock/ or elsewhere . The reason I ask is this, when
> a program crashed, the Linux should clean up after it, un-allocating it's
> memory, closing it's file descriptors, sockets etc so the serial port
> should be ok to open again.
> 
> If you did write it, what is the value of errno when open fails, if you
> didn't, run the program with strace and see what it is up to.
> 

Yes, i wrote it. I open it with open, with O_RDWR, and NO_CTTY.
it is set up with cfmakeraw.
I was trying somethings with the program, and i had to stop it. (Ctrl+c).

Next time i ran it, it locked up when opening the device. It didnt return.
There was no lock file, i didnt create it, it was just for testing.

I saw calling pppd with that device fixed it, but dont know why...
Just want to understand.

> Tim.
> 
> On Wed, 12 Sep 2001, David Eduardo Gomez Noguera wrote:
> 
> > I have a problem with a serial device.
> > I run a programthat opens it, but it has crashed a few times and then the device appears to be left open, because the next time i run that program it freezes just before opening it.
> >
> > how can i fix it?
> > or what can i do to make that dev reusable without rebooting?
> >
> > thank you.
> >
> > --
> > ICQ: 15605359 Bicho
> >                                   =^..^=
> > First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi.
> > ........Por que no pensaran los hombres como los animales? Pink Panther........
> > -------------------------------気検体の一致------------------------------------
> > 暑さ寒さも彼岸まで。
> > アン アン アン とっても大好き
> >
> > -----------------------------------------------------------------------
> > Next Technical Meeting:  Sat, Sep 15 13:30-  Leading Edge Co., Place Canada
> > Next Nomikai Meeting:    Fri, Oct 19 19:30-  Tengu Tokyo Eki-Mae
> > -----------------------------------------------------------------------
> > more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan
> >
> >
> 
> -----------------------------------------------------------------------
> Next Technical Meeting:  Sat, Sep 15 13:30-  Leading Edge Co., Place Canada
> Next Nomikai Meeting:    Fri, Oct 19 19:30-  Tengu Tokyo Eki-Mae
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan



-- 
ICQ: 15605359 Bicho
                                  =^..^=
First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi.
........Por que no pensaran los hombres como los animales? Pink Panther........
-------------------------------気検体の一致------------------------------------
暑さ寒さも彼岸まで。
アン アン アン とっても大好き

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links