From 8e8beac9c239c822435c86b7ca3f8d126264df21 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 14 Jul 1997 22:51:51 +0000 Subject: (parse_opt): Turn off synchronous mode when setting a sync interval. --- libdiskfs/opts-std-runtime.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/opts-std-runtime.c b/libdiskfs/opts-std-runtime.c index 47cebeb7..41df2111 100644 --- a/libdiskfs/opts-std-runtime.c +++ b/libdiskfs/opts-std-runtime.c @@ -1,6 +1,6 @@ /* Parse standard run-time options - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -89,7 +89,10 @@ parse_opt (int opt, char *arg, struct argp_state *state) case 'n': h->sync_interval = 0; h->sync = 0; break; case 's': if (arg) - h->sync_interval = atoi (arg); + { + h->sync = 0; + h->sync_interval = atoi (arg); + } else h->sync = 1; break; -- cgit v1.2.3