]> git.ipfire.org Git - thirdparty/chrony.git/commit
main: close pipe in grandparent process
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Nov 2024 13:35:58 +0000 (14:35 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Nov 2024 13:35:58 +0000 (14:35 +0100)
commit26fef1751ad3d67c6701ae4f5ce1a4b2cdffb494
treec27bb2f7d4eed355aa021d1fe1034cc446430321
parentd71e22594e1364cfb822caa1eeb6c9d3d2c8459b
main: close pipe in grandparent process

Close the other end of the pipe in the grandparent process before exit
to avoid valgrind error.

Also, in the daemon process avoid closing the pipe for second time in
the 0-1024 close() loop to avoid another error.
main.c