From: Scott Worley Date: Tue, 10 Oct 2023 23:57:22 +0000 (-0700) Subject: server: Bind port before messing with log files as a lock X-Git-Tag: v0.1.0~7 X-Git-Url: http://git.scottworley.com/tattlekey/commitdiff_plain/5f5768318f897a20464ca177b5de64157afe0938?ds=sidebyside;hp=5f5768318f897a20464ca177b5de64157afe0938 server: Bind port before messing with log files as a lock Rather than messing with flock, fnctl-F_SETLK, etc., just bind the port before touching the log file & let the failure to bind the port keep two instances of the server from stepping on each others' log i/o. ---