aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-04-18 22:36:27 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-04-18 22:36:27 +0300
commit84838fa69592cf37f97aaa918ad4e69b8bd4d62a (patch)
tree1f0395d1ff3f5ad391155bcd819ee77b972eb02f /src/wydawca.c
parent5e93c56acf080ef006176076be4efab4aa0591c0 (diff)
downloadwydawca-84838fa69592cf37f97aaa918ad4e69b8bd4d62a.tar.gz
wydawca-84838fa69592cf37f97aaa918ad4e69b8bd4d62a.tar.bz2
Modify pidfile functions
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 09015c1..d07ebdf 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -325,6 +325,7 @@ wy_main(void)
}
wy_log(LOG_NOTICE, _("daemon launched"));
}
+ pidfile_update();
// Start cleaner thread
pthread_create(&tid, NULL, wy_thr_cleaner, NULL);
@@ -451,12 +452,12 @@ main(int argc, char **argv)
wy_log(LOG_NOTICE, _("wydawca (%s) started"), PACKAGE_STRING);
if (!wy_dry_run)
- check_pidfile();
+ pidfile_check();
wy_main();
dictionaries_close();
modules_close();
- remove_pidfile();
+ pidfile_remove();
wy_log(LOG_NOTICE, _("wydawca (%s) finished"), PACKAGE_STRING);

Return to:

Send suggestions and report system problems to the System administrator.