Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POSIX signal handling (SIGINT, SIGTERM, SIGHUP, etc) #15188

Closed
DartBot opened this issue Nov 20, 2013 · 6 comments
Closed

POSIX signal handling (SIGINT, SIGTERM, SIGHUP, etc) #15188

DartBot opened this issue Nov 20, 2013 · 6 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io
Milestone

Comments

@DartBot
Copy link

DartBot commented Nov 20, 2013

This issue was originally filed by brentalanmille...@gmail.com


It would be nice if dart command line applications had the ability to handle POSIX signals like Node.js's process.on() http://nodejs.org/docs/latest/api/process.html#process_signal_events

It would make it easier to gracefully close connections, reload configurations, etc.

@sgjesse
Copy link
Contributor

sgjesse commented Nov 20, 2013

Added Area-IO, Triaged labels.

@andersjohnsen
Copy link

Set owner to @skabet.
Added this to the 1.1 milestone.
Added Started label.

@andersjohnsen
Copy link

Landed in r31276.


Added Fixed label.

@DartBot
Copy link
Author

DartBot commented Dec 31, 2013

This comment was originally written by cvl.c...@gmail.com


I tested and it works for SIGHUP and SIGINT on my Mac OS.
Why does SIGTERM and other signals currently throws an exception?
Temporary measure?

@andersjohnsen
Copy link

We're using a white-list approach, to be sure we don't expose signals that are used internally. However, I see no problems with SIGTERM. Let me know if there are other signals you'd like to be able to listen for, so we can get a discussion started :)

@kevmoo
Copy link
Member

kevmoo commented May 14, 2014

Removed Area-IO label.
Added Area-Library, library-io labels.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io labels May 14, 2014
@DartBot DartBot added this to the 1.1 milestone May 14, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io
Projects
None yet
Development

No branches or pull requests

4 participants