| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DosShutdown( 1 ) |
MB> You cannot sync the filesystem into a state where it is, in essence, MB> safe to abend. All you achieve by sync is flushing MB> unwritten cache data to the media. In order to stop That's what I'd like to do, at a minimum. MB> the filesystem, you need to close all open files on MB> that filesystem. Since even the operating system MB> retains open file handles into EXE and DLL files at MB> all times it is running, not to mention the system MB> swap file, it is impossible to stop the filesystem MB> just by flushing the cache. I'm not looking to stop the file systems, just to flush whatever data is in the caches to disk to minimize the chance of any data being lost. Take a look at the DosShutdown( 1 ) documentation in the Control Program Reference. Doesn't it sound to you like the documentation indicates this is what it does? I've removed the call I was making to DosShutdown( 1 ), however,because it totally hoses up named pipes and DosResetBuffer(). After DosShutdown( 1 ) runs, DosResetBuffer() never works correctly again until the machine is rebooted. So what would you use to force the cache to flush to disk? --- Maximus/2 2.02* Origin: OS/2 Connection {at} Mira Mesa, CA (1:202/354) SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 202/354 300 777 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.