/[xlog]/xlog/src/utils.c
ViewVC logotype

Diff of /xlog/src/utils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by pa4tu, Mon Nov 1 20:06:23 2004 UTC revision 1.30 by pa4tu, Wed Nov 24 19:02:37 2004 UTC
# Line 27  Line 27 
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"
# Line 243  save_windowsize_and_cleanup (void) Line 251  save_windowsize_and_cleanup (void)
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    

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26