diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-14 16:39:31 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-14 16:39:31 +0200 |
commit | ad0df81c0cc8f9ef813dae560679f82d2086e1bb (patch) | |
tree | 7034208fefa01278aac70a44f3efdcb0bd2397c9 /eurephia_struct.h | |
parent | fa657fbcb1ef92f5d542a4ab21e6ee777117b346 (diff) | |
download | eurephia-ad0df81c0cc8f9ef813dae560679f82d2086e1bb.tar.gz eurephia-ad0df81c0cc8f9ef813dae560679f82d2086e1bb.tar.xz eurephia-ad0df81c0cc8f9ef813dae560679f82d2086e1bb.zip |
Moved eurephia FW from using Posix threads to standard fork. To avoid that the eFW worker keep root privileges
Diffstat (limited to 'eurephia_struct.h')
-rw-r--r-- | eurephia_struct.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/eurephia_struct.h b/eurephia_struct.h index b34c12e..a49e306 100644 --- a/eurephia_struct.h +++ b/eurephia_struct.h @@ -68,16 +68,15 @@ typedef struct { // typedef struct { mqd_t msgq; - sem_t semp_module; - sem_t semp_driver; + sem_t *semp_worker; + sem_t *semp_master; char *fw_command; void *ctx; } efw_threaddata; typedef struct { - pthread_t fw_thread; - pthread_attr_t fw_threadattr; efw_threaddata thrdata; + pid_t fwproc_pid; } eurephiaFWINTF; |