Only with the introduction of the Linux file system standard that would save the banks came in sight. He states that basically lock files are used and this in a unique directory should be stored as / var / lock. By convention, the names of all the lock files a special format. Thus, for example, the lock file for ttyS1 device called LCK .. ttyS1. The cua lock files for devices should be stored in this directory also, however, the use of these devices are discouraged.
The cua devices may be a while yet supported to ensure backward compatibility, but with time they will lose importance. If you are unsure, always use only ttyS devices and make sure that your system is really the Linux FSSTND used. At a minimum, programs that use any serial device, lock files in a single directory off their special. Most programs that allow devices to have to do with tty, offer the possibility of translation of its source files, the blocking list with a special compiler option must be chosen for. In some cases, this directory is in a variable called LOCKDIR Makefile or in a configuration file to specify the header. If you translate your software itself, it is best if you just stick to the FSSTND. For precompiled binaries, of which you do not know where to put the lock files, you can find the following:
Code:
binary strings file | grep lock
Is the displayed list does not agree with the rest of your system, you can still make do with a trick. Just try a symbolic link from the directory that is favored by the binary, the default directory / var / lock to create. This is not particularly elegant, but it works.
Bookmarks