[MacPorts] #70556: "base" seemingly locking up for sometimes very long
MacPorts
noreply at macports.org
Fri Aug 23 22:21:16 UTC 2024
#70556: "base" seemingly locking up for sometimes very long
--------------------------+--------------------
Reporter: RJVB | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Resolution: | Keywords:
Port: |
--------------------------+--------------------
Comment (by RJVB):
In my Tcl scripts, I know put this before the call to `mportinit`:
{{{
set runner [thread::create -preserved [list thread::wait]]
thread::send $runner [list after 250 {puts stderr "Initialising
MacPorts..."}] timerID
}}}
and a single line after that procedure terminate successfully:
{{{
thread::send -async $runner [list after cancel $timerID]
}}}
Later on I reuse the same thread to install a "patience timer" for
`mportshutdown`.
I haven't looked if Tcl has repeating timers that can be set as easily but
if so that could be a nice thing to have, making it print out something
periodically to show that `port` is (presumably) not frozen.
--
Ticket URL: <https://trac.macports.org/ticket/70556#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list