treewide: avoid getpid for more ownership checks
commita145f5acf90fff0b146e6e871925950f62fb426a
authorEric Wong <e@80x24.org>
Mon, 1 Apr 2024 06:49:38 +0000 (1 06:49 +0000)
committerEric Wong <e@80x24.org>
Wed, 3 Apr 2024 08:28:07 +0000 (3 08:28 +0000)
tree493ebdb7d2cb55fdba9b667c47d27f3a253f3d32
parent108196adad5e70b6dd40dc431cd1033d44679483
treewide: avoid getpid for more ownership checks

There are still some places where on_destroy isn't suitable,
This gets rid of getpid() calls in most of those cases to
reduce syscall costs and cleanup syscall trace output.
lib/PublicInbox/DSKQXS.pm
lib/PublicInbox/Daemon.pm
lib/PublicInbox/Git.pm
lib/PublicInbox/IO.pm
lib/PublicInbox/LeiALE.pm
t/spawn.t