Skip to content

Ctrl+C of dotnet run closes the emulator #360

@jonathanpeppers

Description

@jonathanpeppers
  • 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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions