summaryrefslogtreecommitdiff
path: root/src/lib/lockfile.c
Commit message (Collapse)AuthorAgeFilesLines
* include: Improve lockfile descriptiondimitri staessens2017-01-091-1/+1
|
* build: Update licenses and copyrightdimitri staessens2017-01-091-10/+11
| | | | | Copyright is set to 2016 - 2017. License text on includes and sources in the library are changed to indicate the LGPLv2.1 license.
* ouroboros: Correct license statementsdimitri staessens2016-12-241-3/+2
| | | | | This corrects the license statements on all files. Installed headers are LGPLv2.1, the rest of the code is GPLv2.
* lib: Remove logs from stable sourcesdimitri staessens2016-12-031-30/+11
| | | | | This removes log output in applications and some size_t printf errors when compiling on 32 bit machines.
* lib: Demultiplex the fast pathdimitri staessens2016-10-211-25/+14
| | | | | | | | The fast path will now use an incoming ring buffer per flow per process. This necessitated the development of a new method for the asynchronous io call, which is now based on an event queue system for scalability (fqueue). The ipcpd's and tools have been updated to this API.
* lib: Fix shm for evil devicesdimitri staessens2016-09-081-2/+2
| | | | | | Cupertino's finest don't seem to support a write call with a filedescriptor that points to a shared memory file. ENOTSUP is not mentioned in their manpage either. Classic.
* lib: Set umask for file creation permissionsdimitri staessens2016-09-071-5/+4
| | | | | Permissions are now set correctly upon creation, removing the need to call fchmod.
* lib: Portability to FreeBSDdimitri staessens2016-07-291-2/+2
| | | | | | | | | | Various portability fixes for FreeBSD. POSIX requires shm file names to start with a "/" to be portable. lseek(2) can be undefined on POSIX shm, replaced with ftruncate(2). IRMd check on existing lockfile more portable. FreeBSD 11.0 is preferred as it natively supports robust mutexes. Full working LLC implementation pending.
* lib: Add lockfiledimitri staessens2016-07-071-0/+170
The pid of the IRMd is stored in a lockfile in shared memory. This makes checking if the IRMd is running independent of the configuration, as previously the IRMd pid was stored at the end of the shm_du_map, which could not be read by an IRMd that would be compiled with different configuration options. Also corrects some unnecessary includes Fixes #21.