diff options
author | Sander Vrijders <[email protected]> | 2016-07-07 15:44:16 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-07-07 15:44:16 +0200 |
commit | cc377e56c6fd25403fc7ccf5f83c82e3d85a767b (patch) | |
tree | 33604c48880d3a01d7053608584236dd15fc43e8 /src/lib/shm_du_map.c | |
parent | 80441117cf61137c6a8c97e0779e70d76ae8541d (diff) | |
parent | b3870ef695a256be4a4ed28a991c39aab37bd6f3 (diff) | |
download | ouroboros-cc377e56c6fd25403fc7ccf5f83c82e3d85a767b.tar.gz ouroboros-cc377e56c6fd25403fc7ccf5f83c82e3d85a767b.zip |
Merged in dstaesse/ouroboros/be-lockfile (pull request #165)
lib: Add lockfile
Diffstat (limited to 'src/lib/shm_du_map.c')
-rw-r--r-- | src/lib/shm_du_map.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c index 53959676..6a4b7361 100644 --- a/src/lib/shm_du_map.c +++ b/src/lib/shm_du_map.c @@ -22,6 +22,7 @@ */ #include <ouroboros/config.h> +#include <ouroboros/errno.h> #include <ouroboros/shm_du_map.h> #include <ouroboros/shm_ap_rbuff.h> #include <ouroboros/time_utils.h> @@ -29,6 +30,7 @@ #include <pthread.h> #include <sys/mman.h> #include <fcntl.h> +#include <unistd.h> #include <stdlib.h> #include <string.h> #include <signal.h> @@ -270,14 +272,6 @@ struct shm_du_map * shm_du_map_open() return dum; } -pid_t shm_du_map_owner(struct shm_du_map * dum) -{ - if (dum == NULL) - return -1; - - return *dum->api; -} - void * shm_du_map_sanitize(void * o) { struct shm_du_map * dum = (struct shm_du_map *) o; |