1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-26 10:00:34 +00:00

fix signals handling on windows

This commit is contained in:
Nikolay Kim 2018-12-11 14:03:06 -08:00
parent d38eb00793
commit fd3e77ea83
3 changed files with 12 additions and 5 deletions

View file

@ -1,5 +1,10 @@
# Changes # Changes
## [0.1.1] - 2018-12-11
* Fix signal handling on windows
## [0.1.0] - 2018-12-09 ## [0.1.0] - 2018-12-09
* Move server to separate crate * Move server to separate crate

View file

@ -1,6 +1,6 @@
[package] [package]
name = "actix-server" name = "actix-server"
version = "0.1.0" version = "0.1.1"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"] authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix server - General purpose tcp server" description = "Actix server - General purpose tcp server"
keywords = ["network", "framework", "async", "futures"] keywords = ["network", "framework", "async", "futures"]

View file

@ -34,7 +34,9 @@ impl Signals {
let fut = { let fut = {
#[cfg(not(unix))] #[cfg(not(unix))]
{ {
tokio_signal::ctrl_c().and_then(move |stream| Signals { tokio_signal::ctrl_c()
.map_err(|_| ())
.and_then(move |stream| Signals {
srv, srv,
stream: Box::new(stream.map(|_| Signal::Int)), stream: Box::new(stream.map(|_| Signal::Int)),
}) })