I have a micro Linux board (SSV DIL-PC) http://www.dilnetpc.com/
Since it has no keyboard nor screen, it is set up to use /dev/ttyS0 as keyboard and console. But I need all the serial ports for my own application!
What happens now is that I can open the port and write to it without a problem in my own C++ program, but when receive a single byte, the port is "taken" from me, and first of all I did not receive the data, but also from then on I can not send anything anymore. It's like the Kernel claimed the port again (set ttyS0 back to 115200 instead of my 19200) etc...
How do I set /dev/null as system stdin and stdout so I can have my ttyS0 back for myself. (Linux 2.4 micro kernel with busybox compiled as an image)