From: Ian Jackson Date: Mon, 25 Nov 2019 00:00:30 +0000 (+0000) Subject: stest: Record the pids of of the secnets we spawn X-Git-Tag: v0.6.0~232 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=commitdiff_plain;h=c9063b891fe3f1edc9fe67bb123f100a221d7c4f stest: Record the pids of of the secnets we spawn Nothing uses this yet. Signed-off-by: Ian Jackson --- diff --git a/stest/common.tcl b/stest/common.tcl index 064d874..e9ca658 100644 --- a/stest/common.tcl +++ b/stest/common.tcl @@ -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] }