Ignore:
Timestamp:
Sep 9, 2009, 12:37:59 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • replace system("sync") by sync() calls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondorestore.c

    r2352 r2376  
    811811                log_to_screen("Preparing to format your disk(s)");
    812812                sleep(1);
    813                 system("sync");
     813                sync();
    814814                log_to_screen("Please wait. This may take a few minutes.");
    815815                res += format_everything(mountlist, FALSE, raidlist);
     
    29252925                                "Run complete. Please remove media and reboot.");
    29262926        } else {
    2927             run_program_and_log_output("sync", FALSE);
     2927            sync();
    29282928            if (is_this_device_mounted(MNT_CDROM)) {
    29292929                run_program_and_log_output("umount " MNT_CDROM, FALSE);
Note: See TracChangeset for help on using the changeset viewer.