Re: RS232 Redirector Program in C using Linux
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Mon, 21 Jan 2008 16:28:02 -0000
On 2008-01-21, William Pursell <bill.pursell@xxxxxxxxx> wrote:
On Jan 21, 5:42 am, Steffen <steffen.ku...@xxxxxxxxx> wrote:
I need some help with a c program I am writing.
I can't answer your immediate questions, but I do have a
thought: you don't need to use signals. You might be happier
if you use select/poll/epoll instead. That might simplify the
design and make it easier to track down the error, if it
doesn't eliminate the error completely.
You definitely want to avoid signals if possible. You have to
be very careful about what you're allowed to do in a signal
handler.
Use poll or select. It's a lot simpler. Another option is to
use two threads or processes (IIRC, that's how some serial
programs like kermit used to work back in the days before
poll/select). But poll/select is a lot easier.
--
Grant Edwards grante Yow! I was making donuts
at and now I'm on a bus!
visi.com
.
- Follow-Ups:
- Re: RS232 Redirector Program in C using Linux
- From: Roger Leigh
- Re: RS232 Redirector Program in C using Linux
- References:
- RS232 Redirector Program in C using Linux
- From: Steffen
- Re: RS232 Redirector Program in C using Linux
- From: William Pursell
- RS232 Redirector Program in C using Linux
- Prev by Date: Re: RS232 Redirector Program in C using Linux
- Next by Date: Re: RS232 Redirector Program in C using Linux
- Previous by thread: Re: RS232 Redirector Program in C using Linux
- Next by thread: Re: RS232 Redirector Program in C using Linux
- Index(es):
Relevant Pages
|