C (130/414)

From:Alastair M. Robinson
Date:08 Jun 2000 at 00:53:16
Subject:Suspending disk activity...

Hi Francis,

> The problem is that I'm writing a reboot utility and I
> want make it wait for all disk activity to stop before
> it reboots the machine. As far as I'm aware this is
> 'impossible' to do (why?).

Just a thought, but you could try getting an exclusive lock on all drives on
the system (or maybe send them all an ACTION_INHIBIT packet). If this
succeeds, it would be rather hard for any further disk activity to occur ;-)

(If this fails, you'd probably better release all locks and try again after
a short interval - otherwise you might cause deadlocks.)

All the best,



Alastair M. Robinson, email:blackfive@fakenhamweb.co.uk
Amiga 4000/030, 18Meg RAM, 4.3Gig HD, Mustek ScanExpress 6000SP
C, Assembler (68k, PIC16C84, ATMEL AVR), PostScript,
ARexx, AMOSPro(!), AmigaDOS

Witches use brooms because nature abhors a vacuum.

------------------------------------------------------------------------
Take your development to new heights. Work with clients like Dell and
pcOrder. Submit your resume to jobs@liaison.com. Visit us at
http://click.egroups.com/1/4358/1/_/451227/_/960418617/
------------------------------------------------------------------------