Completed mbtask new disk watcher

This commit is contained in:
Michiel Broek
2004-03-20 23:00:22 +00:00
parent f2a5b62745
commit f55ff6280f
33 changed files with 132 additions and 126 deletions

View File

@@ -100,8 +100,10 @@ int main(int argc, char **argv)
Syslog(' ', cmd);
free(cmd);
if (!diskfree(CFG.freespace))
if (enoughspace(CFG.freespace) == 0) {
Syslog('+', "Low diskspace, abort");
ExitClient(MBERR_DISK_FULL);
}
if (lockprogram((char *)"mbuser")) {
if (!do_quiet)