Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
F151638571: D16641.id.diff
Thu, Apr 9, 4:57 PM
Unknown Object (File)
Mon, Apr 6, 5:24 AM
Unknown Object (File)
Fri, Apr 3, 8:03 PM
Unknown Object (File)
Sun, Mar 29, 4:18 PM
Unknown Object (File)
Sun, Mar 29, 12:05 PM
Unknown Object (File)
Sun, Mar 29, 9:51 AM
Unknown Object (File)
Sun, Mar 29, 2:49 AM
Unknown Object (File)
Thu, Mar 26, 1:09 PM
Subscribers

Details

Summary

Make ldconfig(8) atomic, by removing an unneccessary call to unlink(2)
before rename(2).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 9 2018, 11:24 AM
sbin/ldconfig/ldconfig.c
522 ↗(On Diff #46456)

This comment really marks both unlink() and rename() calls and could be preserved. It is arguably not too useful.

This revision was automatically updated to reflect the committed changes.