Browse Source
Fix windows build issues (#7065)
Need to set signals to UNIX only so we can build on windows.
pull/6202/head^2
idontneedonetho
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
src/main.rs
|
|
|
@ -561,6 +561,7 @@ async fn launch_rocket(pool: db::DbPool, extra_debug: bool) -> Result<(), Error> |
|
|
|
|
|
|
|
// We install our own signal handlers below; disable Rocket's built-in handlers
|
|
|
|
config.shutdown.ctrlc = false; |
|
|
|
#[cfg(unix)] |
|
|
|
config.shutdown.signals.clear(); |
|
|
|
|
|
|
|
config.temp_dir = canonicalize(CONFIG.tmp_folder()).unwrap().into(); |
|
|
|
|