Overview
Comment:Removed psignal/siginfo.h - problematic and unnecessary.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/merging-ode2odes-exe | trunk
Files: files | file ages | folders
SHA3-256: 6848d4da907f75294443d2b124a7b254696aa5d3dc934216a360cd6500503f71
User & Date: geraint@users.sourceforge.net on 2001-03-16 03:56:13
Other Links: branch diff | manifest | tags
Context
2001-03-16
03:56:54
Convert variable names to lower case. check-in: 2dfeaa8a10 user: geraint@users.sourceforge.net tags: origin/merging-ode2odes-exe, trunk
03:56:13
Removed psignal/siginfo.h - problematic and unnecessary. check-in: 6848d4da90 user: geraint@users.sourceforge.net tags: origin/merging-ode2odes-exe, trunk
2001-03-12
23:16:37
Minor improvements to signal handling (.exe). check-in: 80f6f8264a user: geraint@users.sourceforge.net tags: origin/merging-ode2odes-exe, trunk
Changes

Modified mttroot/mtt/bin/trans/make_ode2odes from [2af7299e92] to [0693b22b21].

1
2
3
4
5
6
7
8
9
10
11



12
13
14
15
16
17
18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21











+
+
+







#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
    ######################################

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.51.2.5  2001/03/12 23:16:37  geraint
## Minor improvements to signal handling (.exe).
##
## Revision 1.51.2.4  2001/03/12 03:59:30  geraint
## SIGINT  (C-c C-c) now causes simulation data to be dumped to MTT.core.
## SIGQUIT (C-c C-\) as for SIGINT, then raises default SIGQUIT.
## SIGFPE  as for SIGINT, then raises default SIGABRT.
##
## Revision 1.51.2.3  2001/03/07 04:06:55  geraint
## Irix: catch SIGFPE and write data before aborting (.exe).
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
312
313
314
315
316
317
318

319
320
321
322
323
324
325







-







#endif

#include "${sys}_def.h"
#include "${sys}_sympar.h"

#ifdef STANDALONE
#include <csignal>
#include <siginfo.h> // for Irix psignal
#include <fstream>

extern ColumnVector F${sys}_input (
	ColumnVector &x,
	ColumnVector &y,
	const double &t,
	ColumnVector &par);
656
657
658
659
660
661
662
663

664
665
666
667
668
669
670
658
659
660
661
662
663
664

665
666
667
668
669
670
671
672







-
+







}

void set_signal_handlers (void);

void handle_signal (int signum)
{
  // handle some signals to ensure data is written.
  psignal (signum, "# Writing data to MTT.core");
  cerr << "# Writing data to MTT.core (signal " << signum << ")" << endl;
  ofstream corefile ("MTT.core");
  dump_data (corefile);
  switch (signum)
    {
      case SIGFPE:
        // Intel chips do not raise SIGFPE for DIVZERO :-(
        raise (SIGABRT);


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]