#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 ScribbleUICtx * | pCurrScribbleUICtx = NULL |
| 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 }

| 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 }

ScribbleUICtx* pCurrScribbleUICtx = NULL [static] |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
Definition at line 44 of file ScribbleSignalDeal.c.
1.5.6