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 9 2021, 8:06 PM
Parents
rGd6a0cecab142: zed-functions.sh: zed_lock(): don't truncate lock
Branches
Unknown
Tags
Unknown

Event Timeline

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