Changeset dc0898 in git
- Timestamp:
- Aug 2, 2000, 3:40:33 PM (23 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c18334b998a8adbf0013b8e1ce0824774019443e')
- Children:
- ff4e84752079c82f72d2cff28527ed1b217ac9be
- Parents:
- e03066780716d0feba708e2349c879d0957c6ff2
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
re03066 rdc0898 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: cntrlc.cc,v 1.3 0 2000-05-18 08:31:10 SingularExp $ */4 /* $Id: cntrlc.cc,v 1.31 2000-08-02 13:40:28 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - interupt handling … … 23 23 #include "page.h" 24 24 #endif 25 25 26 26 27 /* undef, if you don't want GDB to come up on error */ … … 627 628 #endif 628 629 #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 637 extern "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 */ -
Singular/emacs.cc
re03066 rdc0898 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: emacs.cc,v 1.1 5 2000-05-08 15:35:09obachman Exp $ */4 /* $Id: emacs.cc,v 1.16 2000-08-02 13:40:28 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: Esingular main file … … 19 19 #if !defined(TSINGULAR) && !defined(ESINGULAR) 20 20 #define ESINGULAR 21 #endif 22 23 #ifdef system 24 #undef system 21 25 #endif 22 26 -
Singular/extra.cc
re03066 rdc0898 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.13 5 2000-05-22 09:39:51 SingularExp $ */4 /* $Id: extra.cc,v 1.136 2000-08-02 13:40:30 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 173 173 res->rtyp=INT_CMD; 174 174 #ifndef __MWERKS__ 175 #ifdef HPUX_9176 signal(SIGCHLD, (void (*)(int))SIG_DFL);177 #endif178 175 if (h==NULL) res->data = (void *)system("sh"); 179 176 else if (h->Typ()==STRING_CMD) … … 181 178 else 182 179 WerrorS("string expected"); 183 #ifdef HPUX_9184 signal(SIGCHLD, (void (*)(int))SIG_IGN);185 #endif186 180 #else 187 181 res->data=(void *)0; -
Singular/fehelp.cc
re03066 rdc0898 808 808 809 809 // --remote exits with status != 0 if netscaep isn't already running 810 #ifdef HPUX_9811 signal(SIGCHLD, (void (*)(int))SIG_DFL);812 #endif813 810 if (system(sys) != 0) 814 811 { … … 823 820 } 824 821 } 825 #ifdef HPUX_9826 signal(SIGCHLD, (void (*)(int))SIG_IGN);827 #endif828 822 } 829 823 -
Singular/mod2.h.in
re03066 rdc0898 6 6 * DO NOT EDIT! 7 7 * 8 * Version: $Id: mod2.h.in,v 1.8 2 2000-04-27 10:07:09obachman Exp $8 * Version: $Id: mod2.h.in,v 1.83 2000-08-02 13:40:33 obachman Exp $ 9 9 *******************************************************************/ 10 10 #ifndef MOD2_H … … 272 272 #define MM_COUNT 1 273 273 274 /* Under HPUX 9, system(...) returns -1 if SIGCHLD does not equal 275 SIG_DFL. However, if it stays at SIG_DFL we get zombie processes 276 for terminated childs generated by fork. Therefors some special treatment 277 is necessary */ 278 #ifdef HPUX_9 279 #include <stdlib.h> 280 #define system hpux9_system 281 #ifdef __cplusplus 282 extern "C" { 283 #endif 284 int hpux9_system(const char* system); 285 #ifdef __cplusplus 286 } 287 #endif 288 #endif 274 289 275 290 #ifndef HAVE_LIBPARSER
Note: See TracChangeset
for help on using the changeset viewer.