Changeset 561aa2 in git


Ignore:
Timestamp:
Dec 8, 2009, 2:53:49 PM (13 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
04deab0015b2f7de28b6216e26361e1861297269
Parents:
6123d46209d4e47df09ba001ea2821349af054fe
Message:
getrusage and children: wait required

git-svn-id: file:///usr/local/Singular/svn/trunk@12372 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    r6123d46 r561aa2  
    1616#include <strings.h>
    1717#include <signal.h>
     18#include <sys/types.h>
     19#include <sys/wait.h>
    1820#include "mod2.h"
    1921#include "omalloc.h"
     
    214216void sig_ign_hdl(int sig)
    215217{
     218 waitpid(-1,NULL,WNOHANG); 
    216219}
    217220
     
    242245    PrintS("cannot set signal handler for INT\n");
    243246  }
    244   //si_set_signal(SIGCHLD, (void (*)(int))SIG_IGN);
    245247  si_set_signal(SIGCHLD, (si_hdl_typ)sig_ign_hdl);
    246248}
  • Singular/mpsr_sl.cc

    r6123d46 r561aa2  
    2020#include <signal.h>
    2121#endif
     22#include <sys/wait.h>
    2223#include "mpsr.h"
    2324#include "tok.h"
     
    413414  if ((strcmp(l->mode, "launch") == 0 || strcmp(l->mode, "fork") == 0) &&
    414415      (MP_GetLinkStatus((MP_Link_pt)l->data,MP_LinkReadyWriting) == MP_TRUE))
     416  {
    415417    SentQuitMsg(l);
     418    //wait(NULL);
     419  }
    416420  MP_CloseLink((MP_Link_pt) l->data);
    417421#ifdef HPUX_9
Note: See TracChangeset for help on using the changeset viewer.