Revision
75534
Author
jmr@macports.org
Date
2011-01-28 17:56:49 -0800 (Fri, 28 Jan 2011)

Log Message

stop tcl from throwing an error just because launchctl writes to stderr

Modified Paths

Diff

Modified: trunk/base/src/port1.0/portload.tcl (75533 => 75534)


--- trunk/base/src/port1.0/portload.tcl	2011-01-29 00:59:19 UTC (rev 75533)
+++ trunk/base/src/port1.0/portload.tcl	2011-01-29 01:56:49 UTC (rev 75534)
@@ -57,7 +57,7 @@
         } elseif {![file exists $path]} {
             return -code error [format [msgcat::mc "Launchd plist %s was not found"] $path]
         } else {
-            exec $launchctl_path load -w $path
+            exec $launchctl_path load -w $path 2>@stderr
         }
     }
     

Modified: trunk/base/src/port1.0/portunload.tcl (75533 => 75534)


--- trunk/base/src/port1.0/portunload.tcl	2011-01-29 00:59:19 UTC (rev 75533)
+++ trunk/base/src/port1.0/portunload.tcl	2011-01-29 01:56:49 UTC (rev 75534)
@@ -57,7 +57,7 @@
         } elseif {![file exists $path]} {
             return -code error [format [msgcat::mc "Launchd plist %s was not found"] $path]
         } else {
-            exec $launchctl_path unload -w $path
+            exec $launchctl_path unload -w $path 2>@stderr
         }
     }