summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-03-29 22:17:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-03-29 22:17:35 +0000
commit301cac1db0dca8870ea9f3cb23e47b2bd8082a8f (patch)
tree0ab5cdf8ba5d08b668d6bc6baa82775f6aad61c2
parent7820ae1e255c321c48f92fc0aa36271e036a23ae (diff)
sync sync sync is so 1970; ok miod
-rw-r--r--usr.sbin/apmd/apmd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index 02a6feebc56..ab2ab1bd423 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmd.c,v 1.44 2006/04/12 19:40:18 deraadt Exp $ */
+/* $OpenBSD: apmd.c,v 1.45 2007/03/29 22:17:34 deraadt Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
@@ -382,8 +382,6 @@ suspend(int ctl_fd)
{
do_etc_file(_PATH_APM_ETC_SUSPEND);
sync();
- sync();
- sync();
sleep(1);
ioctl(ctl_fd, APM_IOC_SUSPEND, 0);
}
@@ -393,8 +391,6 @@ stand_by(int ctl_fd)
{
do_etc_file(_PATH_APM_ETC_STANDBY);
sync();
- sync();
- sync();
sleep(1);
ioctl(ctl_fd, APM_IOC_STANDBY, 0);
}