🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7630

Safe updating of shared libs/binaries

#7630
From: Eric A. Pearce
Date: Sun, 28 Apr 1991 19:20
19 lines
1473 bytes
I'm interested in hearing how other people deal with the problem of
updating shared libraries and executables under SunOS.   The usual result
of just overwriting a running executable or library is that your programs
dies in a big way.   This is pretty disruptive if it's your X server.
Our current level of automation is to run "rdist" and use the "special"
feature, i.e.

	special /usr/lib/lib*X* "/usr/etc/ldconfig" ;

But this really doesn't do much for the crashing problem.   I suppose you
could "mv" the running binary to a new location, copy in the new
executable and remove the old after a certain grace period.  Would you
want setuid programs scooting around in other directories anyways?  This
doesn't make much sense for a shared library (as I understand it) since
the location is set in the cache.

Does anybody have a "clean" solution to this problem?

 Eric Pearce eap@bu-it.bu.edu
Technical Details
Message-ID: <2684@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: eap@bu-it.bu.edu (Eric A. Pearce)
Newsgroups: comp.sys.sun
Subject: Safe updating of shared libs/binaries
Keywords: Miscellaneous
Message-ID: <2684@brchh104.bnr.ca>
Date: 28 Apr 91 19:20:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 20
Approved: Sun-Spots@rice.edu
X-Original-Date: 25 Apr 91 19:39:49 GMT
X-Sun-Spots-Digest: Volume 10, Issue 91, message 24
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu