[118598] trunk/base/src/port1.0/porttrace.tcl
cal at macports.org
cal at macports.org
Sat Apr 5 11:22:29 PDT 2014
Revision: 118598
https://trac.macports.org/changeset/118598
Author: cal at macports.org
Date: 2014-04-05 11:22:29 -0700 (Sat, 05 Apr 2014)
Log Message:
-----------
base: make tracemode work in non-root setups
Modified Paths:
--------------
trunk/base/src/port1.0/porttrace.tcl
Modified: trunk/base/src/port1.0/porttrace.tcl
===================================================================
--- trunk/base/src/port1.0/porttrace.tcl 2014-04-05 16:29:06 UTC (rev 118597)
+++ trunk/base/src/port1.0/porttrace.tcl 2014-04-05 18:22:29 UTC (rev 118598)
@@ -49,9 +49,7 @@
# Create a fifo.
# path in unix socket limited to 109 chars
# # set trace_fifo "$workpath/trace_fifo"
- set trace_fifo "/tmp/macports/[pid]_[expr {int(rand()*1000)}]"
- file mkdir "/tmp/macports"
- chownAsRoot "/tmp/macports"
+ set trace_fifo "/tmp/macports_trace_[pid]-[expr {int(rand()*1000)}]"
file delete -force $trace_fifo
# Create the thread/process.
@@ -337,7 +335,7 @@
# Private.
# Slave cleanup method.
proc porttrace::slave_stop {} {
- global trace_filemap trace_fifo_r_chan trace_fifo_w_chan
+ global trace_filemap
# Close the virtual filemap.
filemap close trace_filemap
# Close the pipe (both ends).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140405/cfdc8330/attachment.html>
More information about the macports-changes
mailing list