kill running processes when building
This commit is contained in:
parent
a8246541e9
commit
4d7ab508fb
6
build.c
6
build.c
@ -52,6 +52,11 @@ SH_CommandResult RunCommand(Arena *arena, String command)
|
||||
return res;
|
||||
}
|
||||
|
||||
void KillRunningProcesses(void)
|
||||
{
|
||||
SH_RunCommand(Lit("taskkill /im PowerPlay.exe /f /fi \"STATUS eq RUNNING\""), true);
|
||||
}
|
||||
|
||||
/* ========================== *
|
||||
* Step
|
||||
* ========================== */
|
||||
@ -977,6 +982,7 @@ void OnBuild(StringList cli_args)
|
||||
Bool success = true;
|
||||
I64 step_count = sl->count;
|
||||
if (step_count > 0) {
|
||||
KillRunningProcesses();
|
||||
ExecuteSteps();
|
||||
|
||||
Step *s = sl->first;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user