mirror of
https://github.com/eddyem/CCD_Capture.git
synced 2026-03-20 08:40:56 +03:00
fixed some bugs but still have a bug with exit from viewer mode
This commit is contained in:
5
main.c
5
main.c
@@ -40,7 +40,8 @@ static int isserver = FALSE;
|
||||
static pid_t childpid = 0;
|
||||
|
||||
void signals(int signo){
|
||||
if(signo) signal(signo, SIG_IGN);
|
||||
//if(signo) signal(signo, SIG_IGN);
|
||||
DBG("signo=%d", signo);
|
||||
if(childpid){ // master process
|
||||
if(signo == SIGUSR1){ // kill child
|
||||
kill(childpid, signo);
|
||||
@@ -62,8 +63,8 @@ void signals(int signo){
|
||||
#ifdef IMAGEVIEW
|
||||
DBG("KILL GL");
|
||||
closeGL();
|
||||
usleep(10000);
|
||||
#endif
|
||||
DBG("exit(%d)", signo);
|
||||
exit(signo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user