Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#48406 closed defect (fixed)

Error spew when cancelling uninstallation that is blocked by another task

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.99
Keywords: Cc: neverpanic (Clemens Lang)
Port:

Description

I told MacPorts to uninstall inactive ports. This caused a "Waiting for lock" message, because I was also installing ports in another terminal window. So I cancelled the uninstall operation by pressing Control-C. The only output I expected to receive was the two characters "^C" but I got many lines of output in addition:

$ sudo port uninstall inactive
Waiting for lock on /opt/local/var/macports/registry/.registry.lock
^CSIGINT signal received
    while executing
"adv-flock $lockfd -exclusive"
    (procedure "registry::exclusive_lock" line 20)
    invoked from within
"registry::exclusive_lock"
    (procedure "lock_reg_if_needed" line 11)
    invoked from within
"lock_reg_if_needed $action"
    (procedure "process_cmd" line 25)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5576)
$ 

This is using base version 2.3.99 at revision r138558.

Change History (3)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cal@… added

comment:2 Changed 9 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts Future
Resolution: fixed
Status: newclosed

Fixed in r146645.

comment:3 Changed 8 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.