Don't let start-process execute in the background
@@ -22,11 +22,11 @@ while ($true) {
switch ($config.mode) {
"fuzz" {
log "onefuzz: fuzzing"
- Start-Process "c:\onefuzz\tools\win64\onefuzz-supervisor.exe" -ArgumentList "run --config config.json" -WindowStyle Hidden
+ Start-Process "c:\onefuzz\tools\win64\onefuzz-supervisor.exe" -ArgumentList "run --config config.json" -WindowStyle Hidden -Wait
}
"repro" {
log "onefuzz: starting repro"
- Start-Process "powershell.exe" -ArgumentList "-ExecutionPolicy Unrestricted -File repro.ps1" -WindowStyle Hidden
+ Start-Process "powershell.exe" -ArgumentList "-ExecutionPolicy Unrestricted -File repro.ps1" -WindowStyle Hidden -Wait
}
default {
log "invalid mode"
