- On macOS
dotnet run with no emulator open
- Choose an emulator to run on
- Let the app launch
- Ctrl+C
- The
emulator closes! (I'd expect just the app to close)
I think this happens because:
- Terminal sends
SIGINT to the process and all child processes
emulator is a child process and gets closed
Ideally, we'd somehow launch the emulator as not a child process of dotnet run. That way you can't Ctrl+C and close the emulator.
I don't know how that works, if there is an API to do that.
dotnet runwith no emulator openemulatorcloses! (I'd expect just the app to close)I think this happens because:
SIGINTto the process and all child processesemulatoris a child process and gets closedIdeally, we'd somehow launch the
emulatoras not a child process ofdotnet run. That way you can't Ctrl+C and close the emulator.I don't know how that works, if there is an API to do that.