Changeset 15306


Ignore:
Timestamp:
04/17/12 00:40:26 (11 years ago)
Author:
nit
Message:

[titan] catch SIGPIPE

Location:
titan/titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/i386port.h

    r15296 r15306  
    164164        switch(sig)
    165165        {
     166                case SIGPIPE:
     167                {
     168                        err("got signal sigpipe but ignore it");
     169                        break;
     170                }
    166171                case SIGUSR1:
    167172                {
  • titan/titan/mipselport.h

    r15296 r15306  
    659659void sighandler(int sig, struct sigcontext ctx)
    660660{
    661 /*
    662661        debug(1000, "in");
    663662        switch(sig)
    664663        {
     664                case SIGPIPE:
     665                {
     666                        err("got signal sigpipe but ignore it");
     667                        break;
     668                }
    665669                case SIGUSR1:
    666670                {
     
    674678                case SIGABRT:
    675679                {
     680/*
    676681#ifdef SIMULATE
    677682                        //intel
     
    691696                        err("got signal %d, programm counter reg: 0x%lx,  procedure reg: 0x%lx", sig, ctx.sc_pc, ctx.sc_pr);
    692697#endif
     698*/
    693699                        if(getconfigint("saverun", NULL) == 1 && status.longjumpbuf != NULL)
    694700                                siglongjmp(status.longjumpbuf, 1);
     
    699705        }
    700706        debug(1000, "out");
    701 */
    702 }
    703 
    704 #endif
     707}
     708
     709#endif
  • titan/titan/sh4port.h

    r15296 r15306  
    545545        switch(sig)
    546546        {
     547                case SIGPIPE:
     548                {
     549                        err("got signal sigpipe but ignore it");
     550                        break;
     551                }
    547552                case SIGUSR1:
    548553                {
  • titan/titan/titan.c

    r15281 r15306  
    388388        sigaction(SIGBUS, &sa, NULL);
    389389        sigaction(SIGABRT, &sa, NULL);
     390        sigaction(SIGPIPE, &sa, NULL);
    390391
    391392        status.rguidfd = -1;
Note: See TracChangeset for help on using the changeset viewer.