27 |
#include <time.h> |
#include <time.h> |
28 |
#include <errno.h> |
#include <errno.h> |
29 |
#include <sys/types.h> |
#include <sys/types.h> |
30 |
|
#include <string.h> |
31 |
|
#include <gtk/gtk.h> |
32 |
|
|
33 |
|
#if defined(HAVE_SYS_IPC_H) |
34 |
#include <sys/ipc.h> |
#include <sys/ipc.h> |
35 |
#include <sys/msg.h> |
#include <sys/msg.h> |
36 |
|
#endif |
37 |
|
|
38 |
|
#if defined(HAVE_SYS_SHM_H) |
39 |
|
#include <sys/ipc.h> |
40 |
#include <sys/shm.h> |
#include <sys/shm.h> |
41 |
#include <string.h> |
#endif |
42 |
#include <gtk/gtk.h> |
|
43 |
#include "types.h" |
#include "types.h" |
44 |
#include "log.h" |
#include "log.h" |
45 |
#include "utils.h" |
#include "utils.h" |
251 |
g_source_remove (clocktimer); |
g_source_remove (clocktimer); |
252 |
|
|
253 |
/* remove message queue */ |
/* remove message queue */ |
254 |
|
#if defined(HAVE_SYS_IPC_H) |
255 |
if (msgid != -1) |
if (msgid != -1) |
256 |
msgctl (msgid, IPC_RMID, 0); |
msgctl (msgid, IPC_RMID, 0); |
257 |
|
#endif |
258 |
|
|
259 |
/* detach shared mem and destroy it */ |
/* detach shared mem and destroy it */ |
260 |
|
#if defined(HAVE_SYS_SHM_H) |
261 |
if (state.shmid != -1) |
if (state.shmid != -1) |
262 |
{ |
{ |
263 |
shmdt (shareCall); |
shmdt (shareCall); |
264 |
shmctl (state.shmid, IPC_RMID, NULL); |
shmctl (state.shmid, IPC_RMID, NULL); |
265 |
} |
} |
266 |
|
#endif |
267 |
|
|
268 |
g_free(searchpx); |
g_free(searchpx); |
269 |
|
|