chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stest: Record the pids of of the secnets we spawn
[secnet.git]
/
stest
/
common.tcl
diff --git
a/stest/common.tcl
b/stest/common.tcl
index 064d8740fe245b9295e2688dfc618f641d448b6d..e9ca6583e56581e798248fe4aefe6db585e0bcb8 100644
(file)
--- a/
stest/common.tcl
+++ b/
stest/common.tcl
@@
-111,6
+111,7
@@
proc spawn-secnet {location site} {
global builddir
global netlinkfh
global env
global builddir
global netlinkfh
global env
+ global pidmap
upvar #0 pids($site) pid
set cf $tmp/$site.conf
set ch [open $cf w]
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]
}
if {[llength $argl]} {
set pid [fork]
+ set pidmap($pid) "secnet $location/$site"
if {!$pid} {
execl [lindex $argl 0] [lrange $argl 1 end]
}
if {!$pid} {
execl [lindex $argl 0] [lrange $argl 1 end]
}