Hi,
I am new to the group and this is my first post.
I have written a serial program..that communicates with a modbus device on the modbus
protocol. this code is at the backend of a CGI script. I would like to block the serial
port, whenever every fork of the scrip is using it. in short i wud like to serialize the
requests on the serial port. i read abt the file-lock, but i am not sure if that will put
the process that cud not get the port to sleep until it is free.
Is there some way of doing this with the help of any system calls, or some parameters to
open (which wud block) the device file?
Any help will be appreciated.
thanks a lot
Manasi
-----------------------------------------------------------------------------------------------------
Sooner or Later..
The Man who wins is not the stronger or the faster,
but the one who thinks he CAN ..
Show replies by date