Skip to content

Commit

Permalink
fix signals handling on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Dec 11, 2018
1 parent d38eb00 commit fd3e77e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions actix-server/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changes

## [0.1.1] - 2018-12-11

* Fix signal handling on windows


## [0.1.0] - 2018-12-09

* Move server to separate crate
2 changes: 1 addition & 1 deletion actix-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-server"
version = "0.1.0"
version = "0.1.1"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix server - General purpose tcp server"
keywords = ["network", "framework", "async", "futures"]
Expand Down
10 changes: 6 additions & 4 deletions actix-server/src/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ impl Signals {
let fut = {
#[cfg(not(unix))]
{
tokio_signal::ctrl_c().and_then(move |stream| Signals {
srv,
stream: Box::new(stream.map(|_| Signal::Int)),
})
tokio_signal::ctrl_c()
.map_err(|_| ())
.and_then(move |stream| Signals {
srv,
stream: Box::new(stream.map(|_| Signal::Int)),
})
}

#[cfg(unix)]
Expand Down

0 comments on commit fd3e77e

Please sign in to comment.