message: Only use fork on non-windows OS
diff: use std::{env, thread};
  use std::panic::{catch_unwind, AssertUnwindSafe};
  -use std::process::exit;
  -use std::fs::File;
  -use std::io::Write;
  use std::time::Duration;
  use std::path::PathBuf;
  -use libc::fork;
  use time;
  use docbuilder::RustwideBuilder;
  use DocBuilderOptions;
  @@ -18,7 +14,13 @@ use DocBuilder;
  use utils::{update_release_activity, github_updater, pubsubhubbub};
  use db::{connect_db, update_search_index};
  -
  +#[cfg(not(target_os = "windows"))]
  +use ::{
  + libc::fork,
  + std::process::exit,
  + std::fs::File,
  + std::io::Write
  +};
  pub fn start_daemon(background: bool) {
  // first check required environment variables
  @@ -36,6 +38,12 @@ pub fn start_daemon(background: bool) {
  dbopts.check_paths().unwrap();
  if background {
  + #[cfg(target_os = "windows")]
  + {
  + panic!("running in background not supported on windows");
  + }
  + #[cfg(not(target_os = "windows"))]
  + {
  // fork the process
  let pid = unsafe { fork() };
  if pid > 0 {
  @@ -47,6 +55,7 @@ pub fn start_daemon(background: bool) {
  exit(0);
  }
  }
  + }
  // check new crates every minute
  thread::Builder::new().name("crates.io reader".to_string()).spawn(move || {
  