summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorlihaoxiang (F) <lihaoxiang9@huawei.com>2022-12-01 12:10:49 +0800
committerJan Kara <jack@suse.cz>2022-12-06 12:59:03 +0100
commitd90b7d585067e87c56d8462b8e3e1c68996e2fc1 (patch)
tree1779ab16ac173d86d9f0d5ead274b9f9160fbab7 /configure.ac
parentf7e24ee92d9bc16557132b33a34a6154aafd99d7 (diff)
downloadlinuxquota-master.tar.gz
quota-nld: fix open PID file failed when systemd read itHEADmaster
Running quota_nld by systemd might cause the problem that systemd couldn't open the PID file generated by quota_nld. In fact, the PID file hasn't existed yet because it originates from the child process of quota_nld which is a daemon process. As the main process exit, systemd try to access the PID file but the daemon hadn't create it that time. In this situation, we move the procedure of creating PID file into the parent process to ensure the PID file must existed when quota_nld exit. After that, the above problem would never occur again. [JK: Fixed up SIGTERM handling and format strings] Signed-off-by: lihaoxiang <lihaoxiang9@huawei.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions