Skip to content

Commit cfdba1c

Browse files
authored
Merge pull request #103 from damianh/add-warning-to-process-kill
Log a warning of the timeout before killing the process
2 parents 1b2dc10 + d5ed776 commit cfdba1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LittleForker/ProcessSupervisor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ await Task
327327
// time.
328328
try
329329
{
330+
_logger.LogWarning(
331+
$"Timed out waiting to signal the process to exit or the " +
332+
$"process {_process.ProcessName} ({_process.Id}) did not shutdown in " +
333+
$"the given time ({timeout})");
330334
_process.Kill();
331335
}
332336
catch (Exception ex)

0 commit comments

Comments
 (0)