Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
F166958032: D16641.diff
Tue, Aug 18, 3:41 AM
Unknown Object (File)
Mon, Aug 17, 6:00 PM
Unknown Object (File)
Fri, Aug 14, 12:54 PM
Unknown Object (File)
Fri, Aug 14, 2:55 AM
Unknown Object (File)
Wed, Aug 12, 3:56 AM
Unknown Object (File)
Mon, Aug 10, 8:18 PM
Unknown Object (File)
Mon, Aug 10, 6:38 PM
Unknown Object (File)
Sun, Aug 9, 9:52 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 Passed
Unit
No Test Coverage
Build Status
Buildable 18662
Build 18347: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 9 2018, 11:24 AM
sbin/ldconfig/ldconfig.c
522

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.