Changeset 146642 for trunk/base


Ignore:
Timestamp:
Mar 14, 2016, 7:07:43 PM (4 years ago)
Author:
cal@…
Message:

base: portindex: Switch to try -pass_signal

See also: #44814

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/portindex.tcl

    r140488 r146642  
    107107    # try to reuse the existing entry if it's still valid
    108108    if {$full_reindex != 1 && [info exists qindex($qname)]} {
    109         try {
     109        try -pass_signal {
    110110            set mtime [file mtime $portfile]
    111111            if {$oldmtime >= $mtime} {
     
    130130                return
    131131            }
    132         } catch {{POSIX SIG SIGINT} eCode eMessage} {
    133             throw
    134         } catch {{POSIX SIG SIGTERM} eCode eMessage} {
    135             throw
    136132        } catch {{*} eCode eMessage} {
    137133            ui_warn "Failed to open old entry for ${portdir}, making a new one"
     
    143139
    144140    incr stats(total)
    145     try {
     141    try -pass_signal {
    146142        _open_port portinfo $portdir $absportdir port_options
    147143        puts "Adding port $portdir"
     
    159155        foreach sub $portinfo(subports) {
    160156            incr stats(total)
    161             try {
     157            try -pass_signal {
    162158                _open_port portinfo $portdir $absportdir port_options $sub
    163159                puts "Adding subport $sub"
    164160
    165161                _write_index_from_portinfo portinfo yes
    166             } catch {{POSIX SIG SIGINT} eCode eMessage} {
    167                 throw
    168             } catch {{POSIX SIG SIGTERM} eCode eMessage} {
    169                 throw
    170162            } catch {{*} eCode eMessage} {
    171163                puts stderr "Failed to parse file $portdir/Portfile with subport '${sub}': $eMessage"
     
    173165            }
    174166        }
    175     } catch {{POSIX SIG SIGINT} eCode eMessage} {
    176         throw
    177     } catch {{POSIX SIG SIGTERM} eCode eMessage} {
    178         throw
    179167    } catch {{*} eCode eMessage} {
    180168        puts stderr "Failed to parse file $portdir/Portfile: $eMessage"
Note: See TracChangeset for help on using the changeset viewer.