HomeFreeBSD

zed.d/all-debug.sh: simplify

Description

zed.d/all-debug.sh: simplify

By locking the log file itself, we can omit arduous rebinding and
explicit umask setting, but, perhaps more importantly, avoid permanently
littering /var/lock/ with zed.debug.log.lock we will never delete

It is imperative that the previous commit
("zed-functions.sh: zed_lock(): don't truncate lock")
be included in any series that contains this one

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12042

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on May 14 2021, 2:18 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 8 2021, 11:09 PM
Parents
rGb828cf1d01d2: zed-functions.sh: zed_lock(): don't truncate lock
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGe20c9330d7b6: zed.d/all-debug.sh: simplify (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Jun 8 2021, 11:09 PM