Changes between Version 2 and Version 3 of FAQ_RapptureSubmit


Ignore:
Timestamp:
07/13/11 18:15:13 (3 years ago)
Author:
clarksm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ_RapptureSubmit

    v2 v3  
    77This code segment is used to catch the {{{Abort}}} button interrupt. Setting {{{execctl}}} to 1 will terminate the process and any child processes. 
    88{{{ 
    9 package require RapptureGUI 
     9package require Rappture 
    1010Rappture::signal SIGHUP sHUP { 
    1111   puts "Caught SIGHUP" 
     12   set execctl 1 
     13} 
     14Rappture::signal SIGTERM sTERM { 
     15   puts "Caught SIGTERM" 
    1216   set execctl 1 
    1317} 
     
    1620{{{ 
    1721   set    submitScript "#!/bin/sh\n\n" 
    18    append submitScript "trap cleanup 1 2 3 6 15\n\n" 
     22   append submitScript "trap cleanup HUP INT QUIT ABRT TERM\n\n" 
    1923   append submitScript "cleanup()\n" 
    2024   append submitScript "{\n" 
    21    append submitScript "   kill -s HUP `jobs -p`\n" 
     25   append submitScript "   kill -TERM `jobs -p`\n" 
    2226   append submitScript "   exit 1\n" 
    2327   append submitScript "}\n\n"