chiark / gitweb /
stest: Record the pids of of the secnets we spawn
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 25 Nov 2019 00:00:30 +0000 (00:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 13:15:49 +0000 (13:15 +0000)
Nothing uses this yet.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
stest/common.tcl

index 064d8740fe245b9295e2688dfc618f641d448b6d..e9ca6583e56581e798248fe4aefe6db585e0bcb8 100644 (file)
@@ -111,6 +111,7 @@ proc spawn-secnet {location site} {
     global builddir
     global netlinkfh
     global env
+    global pidmap
     upvar #0 pids($site) pid
     set cf $tmp/$site.conf
     set ch [open $cf w]
@@ -145,6 +146,7 @@ proc spawn-secnet {location site} {
     }
     if {[llength $argl]} { 
        set pid [fork]
+       set pidmap($pid) "secnet $location/$site"
        if {!$pid} {
            execl [lindex $argl 0] [lrange $argl 1 end]
        }