Message: Re: Clean abort of run Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Clean abort of run 

Keywords: abort run
Forum: Run Management
Re: Question Clean abort of run (Mario Schubert)
Re: Idea Re: Clean abort of run (Daniel Strul)
Date: 01 Aug, 2002
From: Daniel Strul <Daniel Strul>


Just a quick follow-up to my previous mail about how to abort a run. 
We've recently found out that the function psignal(), that was proposed to print-out the 
name of the system message is not fully portable (BSD but not ANSI-compliant). Thus,
it may make the compilation fail on some platforms. 

As this function is used for user information only and is not critical for the signal-handler 
at all, it's better to replace it by a more portable (although less esthetical) code such as:

   // Print that we received the signal to G4cerr
  G4cerr << G4endl << "Received signal: " ;
  switch (sig)
    case SIGQUIT:
      G4cerr << "Quit (CTRL-\\)" << G4endl;
      G4cerr << sig << G4endl;


Daniel Strul
GATE Project technical coordinator

PET Instrumentation Laboratory
Institute for High Energy Physics
University of Lausanne
CH-1015 Lausanne, Switzerland

Tel: +41 (0)21 692 37 34
Fax: +41 (0)21 692 37 05

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Clean abort of run"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]