To reproduce:
dotnet new web -o web
cd web
dotnet run
Find the pid of the dotnet run process, and send it SIGTERM from another terminal:
With CoreCLR, the application shuts down, and the exit code is 0:
...
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
$ echo $?
0
With Mono, the application keeps running, the dotnet run process gets terminated:
The web process is still running, you can send it SIGTERM seperately and it terminates nicely.
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
This difference in behavior is causing one of the source-build smoke tests to fail: dotnet/source-build#3174.
cc @akoeplinger
To reproduce:
Find the pid of the
dotnet runprocess, and send it SIGTERM from another terminal:With CoreCLR, the application shuts down, and the exit code is
0:With Mono, the application keeps running, the
dotnet runprocess gets terminated:The
webprocess is still running, you can send it SIGTERM seperately and it terminates nicely.This difference in behavior is causing one of the source-build smoke tests to fail: dotnet/source-build#3174.
cc @akoeplinger