rc: add lock for output (fixes #25200)
commit47f1b7b645076b495deacbab76392d2ba2fec3ca
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 18 Oct 2020 18:19:59 +0000 (18 21:19 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 18 Oct 2020 18:22:34 +0000 (18 21:22 +0300)
tree823711dda172a8ade4b2dfe271a1a1e52231ce95
parentf5f6ce1305f466c34f0f58267d19f41a43fe58c6
rc: add lock for output (fixes #25200)

This fixes the (mostly harmless but nevertheless undefined behaviour)
data race on the output file descriptor.
modules/control/cli/cli.c
modules/control/cli/cli.h