Changeset ffc237 in git


Ignore:
Timestamp:
Sep 13, 2010, 10:36:30 AM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
4082e84530b5196a4f22c2d0872863e711afb239
Parents:
200e65d0b5196ecb3020dc53a5e6852670566654
Message:
signal SIGPIPE

git-svn-id: file:///usr/local/Singular/svn/trunk@13170 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    r200e65d rffc237  
    2727#include <Singular/feOpt.h>
    2828#include <Singular/version.h>
     29#include <Singular/silink.h>
    2930
    3031/* undef, if you don't want GDB to come up on error */
     
    220221}
    221222
     223si_link pipeLastLink=NULL;
     224
     225void sig_pipe_hdl(int sig)
     226{
     227 if (pipeLastLink!=NULL)
     228 {
     229   slClose(pipeLastLink);
     230   pipeLastLink=NULL;
     231   WerrorS("pipe failed");
     232 }
     233}
     234
    222235/*2
    223236* init signal handlers, linux/i386 version
     
    247260  }
    248261  si_set_signal(SIGCHLD, (si_hdl_typ)sig_ign_hdl);
     262  si_set_signal(SIGPIPE, (si_hdl_typ)sig_pipe_hdl);
    249263}
    250264
Note: See TracChangeset for help on using the changeset viewer.