On 2008-10-08, johnny <johnny@xxxxxxxxxxxxxxx> wrote: > If I want to run this small program continuously and detect > the changes of the input pins all the time, can I simply use > an infinite loop to do that? Yes. Though you may want to sleep a little between polls to allow other things to run. Unfortunately, there are no "block until modem status change" semantics in the Unix tty driver (one of a number of useful things that the Unix tty driver is missing). > Does it anything wrong to the serial port? No. -- Grant -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html