Commit Graph
18 Commits
Author SHA1 Message Date
Michal 'vorner' Vaner a9257477e0 Style: Replace tabs with spaces
Mixing tabs and spaces breaks indentation for people (and github) if
they use different tab width.
2017-01-26 21:26:58 +01:00
Alex Crichton ba19515833 Clarify a comment 2017-01-24 10:59:31 -08:00
Alex Crichton a21153a0e9 Clear out old Signal on drop 2017-01-24 10:54:55 -08:00
Alex Crichton 83a5277af1 Touch up more impls and comments 2017-01-24 10:47:09 -08:00
Alex Crichton b748fa955c Handle a few more errors 2017-01-24 10:06:54 -08:00
Alex Crichton 277fff43f5 Various cleanups:
* Drop nix/lazy_static
* Use previously registered handlers
* Handle some more errors
2017-01-24 10:02:42 -08:00
Michal 'vorner' Vaner a02a38fbae The driver task
Add the driver task, connecting the signal handler wakeups to the
wakeups of of the streams.

It is a prototype-quality code, a lot of cleanups and similar is needed.
2017-01-22 14:48:22 +01:00
Michal 'vorner' Vaner f7167b48a7 Provide the new kind of Signal stream
Which is just a wrapper around the futures::sync::mpsc. The sender is in
a global registry.

The part that connects the wakeups to the senders in the registry
doesn't yet exist.
2017-01-22 12:58:48 +01:00
Michal 'vorner' Vaner 8abc26df39 Implement the wake-up part of the new signal handling
Register the signal handler that wakes up someone through a self-pipe.
That someone doesn't yet exist, though.

Some dependencies (nix, lazy_static) added to speed up the prototyping
process. They are likely to be dropped in some future commits.

Some features (eg. preserving the previous signal handlers) are still
missing.
2017-01-22 12:27:03 +01:00
Alex Crichton a3c07eb771 Remove deprecated API usage on Windows 2017-01-12 10:29:22 -08:00
Alex Crichton 18776138ad Remove use of deprecated APIs on Unix 2017-01-12 10:25:51 -08:00
Alex Crichton b726610e7f Ignore errors in signal handler
Closes #3
2017-01-11 10:21:01 -08:00
Alex Crichton 72283f178a Remove SIGKILL reexport 2016-10-05 13:55:45 -07:00
Alex Crichton 202220034e Add symbolic reexports for common signals
Means you don't have to import libc!

Closes #1
2016-10-05 08:58:06 -07:00
Alex Crichton 69ced1b6da Start adding windows support 2016-09-08 17:28:44 -07:00
Alex Crichton 17481a3a54 Track tokio-core master 2016-09-07 22:14:54 -07:00
Alex Crichton 06153d0f28 Add docs and travis 2016-09-07 00:03:43 -07:00
Alex Crichton 50973e0734 Initial commit 2016-09-06 23:00:17 -07:00