From d1b9eca5ebcfb57c28f4a040041887833d581663 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 14 Oct 2017 00:19:13 +0800 Subject: [PATCH] Fix bug that cause boot delay --- jni/daemon/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/daemon/daemon.c b/jni/daemon/daemon.c index bff8478d1..437397001 100644 --- a/jni/daemon/daemon.c +++ b/jni/daemon/daemon.c @@ -170,7 +170,7 @@ void start_daemon() { unlock_blocks(); // Notifiy init the daemon is started - close(xopen(UNBLOCKFILE, O_RDONLY)); + close(xopen(UNBLOCKFILE, O_RDONLY | O_CREAT)); // Loop forever to listen for requests while(1) {