Merge "block_suspend: avoid CPU spinloop"
diff --git a/block_suspend.cpp b/block_suspend.cpp
index 99341b8..18c93d4 100644
--- a/block_suspend.cpp
+++ b/block_suspend.cpp
@@ -14,6 +14,8 @@
  * limitations under the License.
  */
 
+#include <unistd.h>
+
 #include <iostream>
 
 #include <wakelock/wakelock.h>
@@ -33,7 +35,7 @@
     }
 
     android::wakelock::WakeLock wl{gWakeLockName};  // RAII object
-    while (true) {};
+    while (true) { sleep(1000000); };
     std::abort();  // should never reach here
     return 0;
 }