Serial Port Lock File Patch

Introduction

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.

-- KennethLavrsen - 19 Jul 2006


Topic revision: 19 Jul 2006, KennethLavrsen
 
Open2300 - Serial Port Lock File Patch
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback