/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 1001 by johnpye, Fri Dec 22 11:03:51 2006 UTC revision 1002 by johnpye, Sat Dec 30 14:27:47 2006 UTC
# Line 1298  void sighandler(int sig){ Line 1298  void sighandler(int sig){
1298      longjmp(g_jmpenv,sig);      longjmp(g_jmpenv,sig);
1299  }  }
1300  void testsigint(){  void testsigint(){
1301      fprintf(stderr,"Raising SIGINT\n");      /* fprintf(stderr,"Raising SIGINT\n"); */
1302      raise(SIGINT);      raise(SIGINT);
1303  }  }
1304  int main(void){  int main(void){
1305      SigHandlerFn *last,*saved;      SigHandlerFn *last,*saved;
1306      saved = signal(SIGINT,&sighandler);      saved = signal(SIGINT,&sighandler);
1307      if(saved!=SIG_DFL){      if(saved!=SIG_DFL){
1308          fprintf(stderr,"Default handler was not correctly set\n");          fprintf(stderr,"Default handler (%p) was not correctly set\n",SIG_DFL);
1309          exit(3);          exit(3);
1310      }      }
1311      switch(setjmp(g_jmpenv)){      switch(setjmp(g_jmpenv)){
# Line 1318  int main(void){ Line 1318  int main(void){
1318          default:          default:
1319              exit(2);              exit(2);
1320      };      };
1321      last = signal(SIGINT,(saved!=NULL)?saved:SIG_DFL);      last = signal(SIGINT,SIG_DFL);
1322      if(last!=&sighandler){      if(last!=&sighandler){
1323          printf("1");          printf("1");
1324          exit(0);          exit(0);
# Line 1334  def CheckSigReset(context): Line 1334  def CheckSigReset(context):
1334      if not is_ok:      if not is_ok:
1335          context.Result("ERROR")          context.Result("ERROR")
1336          return 0          return 0
1337      if(int(output)):      if int(output)==1:
1338          context.Result("required");          context.Result("required");
1339          context.env['ASC_RESETNEEDED'] = True          context.env['ASC_RESETNEEDED'] = True
1340      else:      else:

Legend:
Removed from v.1001  
changed lines
  Added in v.1002

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22