Skip to content

Commit

Permalink
Fix Windows job handle names being the same
Browse files Browse the repository at this point in the history
  • Loading branch information
Voltstro committed Oct 26, 2024
1 parent 02137ff commit 035d6c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public WindowProcess()
{
//Job handle code from SO
//https://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed
string jobName = "UWBChildProcesses" + System.Diagnostics.Process.GetCurrentProcess().Id;
string jobName = "UWBChildProcesses" + new Guid().ToString("N");
jobHandle = CreateJobObject(IntPtr.Zero, jobName);

JOBOBJECT_BASIC_LIMIT_INFORMATION info = new()
Expand Down

0 comments on commit 035d6c8

Please sign in to comment.