Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sbin/raidctl Pullup 1.23->1.24. Approved by thorpej.



details:   https://anonhg.NetBSD.org/src/rev/233cf78d4378
branches:  netbsd-1-5
changeset: 489141:233cf78d4378
user:      oster <oster%NetBSD.org@localhost>
date:      Sat Aug 19 20:10:51 2000 +0000

description:
Pullup 1.23->1.24.  Approved by thorpej.
It is impolite to poll in a tight loop.  (Thanks to Christos for noting
the problem.)

diffstat:

 sbin/raidctl/raidctl.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 584eb92e7c33 -r 233cf78d4378 sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Sat Aug 19 19:38:43 2000 +0000
+++ b/sbin/raidctl/raidctl.c    Sat Aug 19 20:10:51 2000 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: raidctl.c,v 1.23 2000/06/03 16:59:36 oster Exp $   */
+/*      $NetBSD: raidctl.c,v 1.23.2.1 2000/08/19 20:10:51 oster Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -767,6 +767,7 @@
                                         "RAIDFRAME_CHECK_PARITYREWRITE_STATUS"
                                         );
                                while( percent_done < 100 ) {
+                                       sleep(3); /* wait a bit... */
                                        do_ioctl(fd, RAIDFRAME_CHECK_PARITYREWRITE_STATUS, 
                                                 &percent_done, "RAIDFRAME_CHECK_PARITYREWRITE_STATUS");
                                }



Home | Main Index | Thread Index | Old Index