]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Use SO_REUSEADDR at server socket, log rsync execution output.
authorpcarana <pc.moreno2099@gmail.com>
Tue, 14 Jan 2020 21:17:03 +0000 (15:17 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Tue, 14 Jan 2020 21:17:03 +0000 (15:17 -0600)
commitac56d70c954caf49382f5f28ff4a017e859e2e0a
treefd82e9df21e89e473b7af6b2bd31a3f484b3c42a
parente5a3b54bd80c84b3e2f8a237844715dd278834df
Use SO_REUSEADDR at server socket, log rsync execution output.

+SO_REUSEADDR sockopt allows to reuse server address and port at once when the service has been stoped (or killed).
+Fix bug: the output of rsync execution (either error or verbose) wasn't being logged when 'log.output' was syslog. The stderr of rsync fork is sent to 'pr_err' function, and stdout is sent to 'pr_info' function.
src/rsync/rsync.c
src/rtr/rtr.c