Serial Port Lock File Patch
Patch from Sourceforge tracker from anonymous user.
Tries to address the problem of blocked serial port.
Description of Patch
Text posted at Sourceforge
If I am start in same time two open2300 programs, new hangs indefinitely, and the next too.
it's because on my computer ( redhat 9 uptodate, with 64 Mo of RAM ), the simple fact to open the serial port, even if you don't send any data, modify serial parameters. And the lock function of linux.c, wait indefinitely.
solution: open ( and create if not ever exist), a constant file, check if is locking in no blocking mode, and if not, continue normal operation or if locked then exist immediately.
see proposal patch for linux.c program
Installation of Patch
copy the patch to the open2300 directory to apply, go to the open2300 source directory
patch -p0 < ./open2300-1.10-patch-linux_c.txt
Change History of Patch
1.0 Initial version
Discussion and Comments
For now I have chosen to include another proposal for handling blocked serial port.
I would like to avoid starting having new files being written and and people having problems with access right etc.
- 19 Jul 2006