dotnet build leaves lingering dotnet processes on raspberry pi (debian)
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
After doing a basic `dotnet build`, I can see lingering dotnet processess being reported as still alive.
### To Reproduce
on a Raspberry PI (note: only platform tested on, I *assume* this happens elsewhere but obviously I do not have any evidence of that), execute the following commands:
ps
dotnet new console
dotnet build
ps
The expected output would be that the first `ps` reports your shell and any other lingering processes you might have, and then the second `ps` reports basically the same.
The observed difference is that the second `ps` reports a `dotnet` process still lingering.
Here are sample outputs, first `ps` (this is on a RPI where I am using Powershell as my main shell, thus the presence of the `pwsh` shell):
PID TTY TIME CMD
85841 pts/0 00:00:24 pwsh
95298 pts/0 00:00:00 ps
second `ps`:
PID TTY TIME CMD
85841 pts/0 00:00:24 pwsh
95348 pts/0 00:00:02 dotnet
95389 pts/0 00:00:00 ps
Note that if you do additional `dotnet build`, additional `dotnet` instances do not pop up. If you kill the one lingering process and issue a `dotnet build` (with no changes to the source code), no lingering process is listed, except if you force it to do a rebuild with:
dotnet build --no-incremental
then again a lingering process will be listed.
I noticed this after doing a `dotnet build` followed by a `dotnet publish` after which I had three lingering `dotnet` processes being listed.
### Further technical details
dotnet --info:
.NET SDK:
Version: 8.0.201
Commit: 4c2d78f037
Workload version: 8.0.200-manifests.3097af8b
Runtime Environment:
OS Name: debian
OS Version: 12
OS Platform: Linux
RID: linux-arm64
Base Path: /home/lassevk/.dotnet/sdk/8.0.201/
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 8.0.2
Architecture: arm64
Commit: 1381d5ebd2
.NET SDKs installed:
8.0.201 [/home/lassevk/.dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.2 [/home/lassevk/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.2 [/home/lassevk/.dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT [/home/lassevk/.dotnet]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.