Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 10:43 PM
Unknown Object (File)
Mon, Dec 1, 3:25 AM
Unknown Object (File)
Fri, Nov 28, 6:13 PM
Unknown Object (File)
Fri, Nov 28, 6:41 AM
Unknown Object (File)
Wed, Nov 26, 6:50 PM
Unknown Object (File)
Wed, Nov 26, 6:24 AM
Unknown Object (File)
Mon, Nov 24, 3:15 PM
Unknown Object (File)
Sat, Nov 22, 7:42 AM
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.