summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:02:24 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:02:24 -0500
commitf3aa09930cfeabce1811b0e0aed545ea46b32409 (patch)
treea7e8afa6ff6ee19c954771ccfed03cf87180ccbf
parente8461ff6d2334170ea6247e4f439120bb1097aeb (diff)
not sure sync is worthwhile
-rw-r--r--instr-daemon.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/instr-daemon.c b/instr-daemon.c
index 0b6bcc7..2b1c110 100644
--- a/instr-daemon.c
+++ b/instr-daemon.c
@@ -14,7 +14,6 @@
#include <stdlib.h>
#include <ctype.h>
#include <glib.h>
-#include <unistd.h>
#define STDIN_BUF_SIZE 1024
@@ -316,10 +315,6 @@ int main(int argc, char **argv)
static gboolean periodic_poll (void)
{
if (bus_getpin (POWER_FAIL)) {
- // tidy up filesystem
- sync ();
-
- // shutdown
system ("/usr/bin/systemctl poweroff");
}