scribble/src/ScribbleSignalDeal.c File Reference

#include "ScribbleUI.h"
#include "ScribbleSignalDeal.h"
#include "ScribbleLog.h"
#include "ScribbleCore.h"
#include "ScribbleSaveThread.h"
#include "erbusy.h"
#include <signal.h>

Go to the source code of this file.

Functions

static void on_sigterm (int signo)
void dealTermSignal (ScribbleUICtx *pScribbleUICtx)

Variables

static ScribbleUICtxpCurrScribbleUICtx = NULL


Function Documentation

void dealTermSignal ( ScribbleUICtx pScribbleUICtx  ) 

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 57 of file ScribbleSignalDeal.c.

00058 {
00059      // catch the SIGTERM signal
00060     struct sigaction on_term;
00061 
00062     pCurrScribbleUICtx=pScribbleUICtx;
00063     memset(&on_term, 0x00, sizeof(on_term));
00064     on_term.sa_handler = on_sigterm;
00065     sigaction(SIGTERM, &on_term, NULL);
00066 }

Here is the call graph for this function:

static void on_sigterm ( int  signo  )  [static]

Definition at line 47 of file ScribbleSignalDeal.c.

00048 {
00049     // stop main process
00050     SB_TIMEDISPLAY("\n caught signal to term\n"); 
00051     gdk_threads_enter();//need it in getpixmap...
00052     quit(pCurrScribbleUICtx);
00053     gdk_threads_leave();
00054 }

Here is the call graph for this function:


Variable Documentation

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 44 of file ScribbleSignalDeal.c.


Generated on Sun Dec 14 17:14:39 2008 by  doxygen 1.5.6