Changeset dc0898 in git for Singular/cntrlc.cc


Ignore:
Timestamp:
Aug 2, 2000, 3:40:33 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
ff4e84752079c82f72d2cff28527ed1b217ac9be
Parents:
e03066780716d0feba708e2349c879d0957c6ff2
Message:
* solved system problem under HPUX


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

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    re03066 rdc0898  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: cntrlc.cc,v 1.30 2000-05-18 08:31:10 Singular Exp $ */
     4/* $Id: cntrlc.cc,v 1.31 2000-08-02 13:40:28 obachman Exp $ */
    55/*
    66* ABSTRACT - interupt handling
     
    2323#include "page.h"
    2424#endif
     25
    2526
    2627/* undef, if you don't want GDB to come up on error */
     
    627628#endif
    628629#endif
     630
     631/* Under HPUX 9, system(...) returns -1 if SIGCHLD does not equal
     632   SIG_DFL. However, if it stays at SIG_DFL we get zombie processes
     633   for terminated childs generated by fork. Therefors some special treatment
     634   is necessary */
     635#ifdef HPUX_9
     636#undef system
     637extern "C" {
     638  int  hpux9_system(const char* call)
     639  {
     640    int ret;
     641    signal(SIGCHLD, (void (*)(int))SIG_DFL);
     642    ret = system(call);
     643    signal(SIGCHLD, (void (*)(int))SIG_IGN);
     644    return ret;
     645  }
     646}
     647#endif /* HPUX_9 */
Note: See TracChangeset for help on using the changeset viewer.