Changeset 29361


Ignore:
Timestamp:
Sep 22, 2007, 8:16:17 AM (12 years ago)
Author:
jmpp@…
Message:

Use the cleanup proc to handle the runlog file too. Call to the subject and recipient variables only if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/PortIndex2MySQL.tcl

    r29359 r29361  
    8585proc terminate {exit_status} {
    8686    global runlog runlog_fd
    87     global subject SPAM_LOVERS
    8887    if {$exit_status} {
     88        global subject SPAM_LOVERS
    8989        seek $runlog_fd 0 start
    9090        exec -- mail -s $subject $SPAM_LOVERS <@ $runlog_fd
    9191    }
    92     close $runlog_fd
    93     file delete -force $runlog
     92    cleanup runlog
    9493    exit $exit_status
    9594}
Note: See TracChangeset for help on using the changeset viewer.