Skip to content

Commit

Permalink
Proper cleanup for deployed process signaler (#259)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com>
  • Loading branch information
xpherism and Tyrrrz authored Sep 19, 2024
1 parent 68bda90 commit b7765e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CliWrap/Utils/WindowsSignaler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal partial class WindowsSignaler
public static WindowsSignaler Deploy()
{
// Signaler executable is embedded inside this library as a resource
var filePath = Path.ChangeExtension(Path.GetTempFileName(), "exe");
var filePath = Path.Combine(Path.GetTempPath(), $"CliWrap.Signaler.{Guid.NewGuid()}.exe");
Assembly.GetExecutingAssembly().ExtractManifestResource("CliWrap.Signaler.exe", filePath);

return new WindowsSignaler(filePath);
Expand Down

0 comments on commit b7765e9

Please sign in to comment.