All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)sticky.8 4.1 (Berkeley) 04/27/85
Sharable files are made by the -n and -z options of ld (1).
To replace a sticky file that has been used do: (1) Clear the sticky bit with chmod (1). (2) Execute the old program to flush the swapped copy. This can be done safely even if others are using it. (3) Overwrite the sticky file. If the file is being executed by any process, writing will be prevented; it suffices to simply remove the file and then rewrite it, being careful to reset the owner and mode with chmod and chown (2). (4) Set the sticky bit again.
Only the super-user can set the sticky bit.
Is largely unnecessary on the VAX; matters only for large programs that will page heavily to start, since text pages are normally cached incore as long as possible after all instances of a text image exit.