Force Unix EOL even on Windows (i.e. Cygwin).
[gem5.git] / base / pollevent.cc
index 619bda887f47be1ba088b3f922c83ae41cf38753..99044fc09d529d3d632ed2d04393e7490a48d1eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2002-2005 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -37,7 +37,7 @@
 #include "sim/host.hh"
 #include "base/misc.hh"
 #include "base/pollevent.hh"
-#include "sim/universe.hh"
+#include "sim/root.hh"
 #include "sim/serialize.hh"
 
 using namespace std;
@@ -223,14 +223,14 @@ PollQueue::setupHandler()
 
     act.sa_handler = handleIO;
     sigemptyset(&act.sa_mask);
-    act.sa_flags = 0;
+    act.sa_flags = SA_RESTART;
 
     if (sigaction(SIGIO, &act, &oldio) == -1)
         panic("could not do sigaction");
 
     act.sa_handler = handleALRM;
     sigemptyset(&act.sa_mask);
-    act.sa_flags = 0;
+    act.sa_flags = SA_RESTART;
 
     if (sigaction(SIGALRM, &act, &oldalrm) == -1)
         panic("could not do sigaction");