Skip to content

Commit c70b1c4

Browse files
committed
Log SIGTERM
1 parent b5bf3f5 commit c70b1c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BuiltInTools/DotNetDeltaApplier/StartupHook.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ private static void RegisterPosixSignalHandlers()
8787

8888
_ = PosixSignalRegistration.Create(PosixSignal.SIGTERM, context =>
8989
{
90+
Log($"SIGTERM received. Cancel={context.Cancel}");
91+
9092
if (!context.Cancel)
93+
{
9194
Environment.Exit(0);
95+
}
9296
});
9397

9498
Log("Posix signal handlers registered.");

0 commit comments

Comments
 (0)