aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-04-15 16:26:34 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-04-15 20:25:49 +0300
commit2cc5b63b5f90d2dd9b05f50ac28e379d417f1a8c (patch)
tree38238377b042a159fb9bf633e7b8e3853f0fd980 /src/wydawca.c
parent44ad5cfe84f1cd1d7b6de35ae251f1caf69450d8 (diff)
downloadwydawca-2cc5b63b5f90d2dd9b05f50ac28e379d417f1a8c.tar.gz
wydawca-2cc5b63b5f90d2dd9b05f50ac28e379d417f1a8c.tar.bz2
Use job scheduler when processing all spools.alpha-3.1.90
* src/job.c (job_printable): Improve job identification. (wydawca_scanner): Don't log statistics in single process mode. (job_queue_wait): New function. * src/net.c (wydawca_listener): Move the call to job_init to main. * src/process.c (scan_spool_unlocked): Enqueue the triplet. Don't call spool_commit_triplets * src/triplet.c (remove_triplet): Omit checks in dry-run mode. (triplet_processor,spool_commit_triplets) (count_collected_triplets): Remove. * src/wydawca.c (main): Call job_queue_wait if not daemon. * tests/inotify-unatt01.at: Update expected output. * tests/upload-dry.at: Likewise.
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index eb35111..d948429 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -400,14 +400,16 @@ main(int argc, char **argv)
}
wydawca_lock_init();
+ job_init();
wy_log(LOG_NOTICE, _("wydawca (%s) started"), PACKAGE_STRING);
scan_all_spools();
- logstats();
if (wy_mode == WY_MODE_DAEMON)
wydawca_daemon();
-
+ else
+ job_queue_wait();
+
dictionaries_close();
modules_close();

Return to:

Send suggestions and report system problems to the System administrator.