OT: broken/useless ansi - console driver??
Bill Campbell
bill at celestial.com
Mon Oct 24 09:25:53 PDT 2005
On Mon, Oct 24, 2005, John Esak wrote:
...
>It's even more hassle for others than myself...here is a forwarded message
>from a friend.
>
>....
>
>John,
>This issue is even more serious than I previously thought (at least for me)
>because when writing server programs, I have to code and test, code and
>test and I used to get an error when trying to place a new version over a
>running one (because the PC side is already connected - very common), but
>now it just copies without an error then I get a core dump by the server in
>the background and everything crashes. I thought the issue would only come
>up with software installs, but for me, it can be tons of times in a day.
>Now I know why I always seem to have a recent /core file with OS6...
>Now I have to be super careful to stop everything before I copy over every
>single recompiled version (which is every few minutes for me). VERY
>tedious.
Not to diminish the gravity of this change in behaviour, I would suggest
that one's installation procedure should take this into account by moving
the old executable to a backup name before replacing the compiled binary,
something like this in a Makefile:
BINARY = progname
$(BINARY): $(SOURCES)
# build something resulting in $(BINARY).new
mv $(BINARY) $(BINARY).bak
mv $(BINARY).new $(BINARY)
This has the advantage that if the new one is broken, it's easy to move the
backup copy back to the real binary location. It shouldn't break running
programs (at least on *nix systems) as the paging mechanism should be
looking at the inode, not at the file name to determine where the
executable is. I have no idea how the Windows virus would handle this as I
don't do Windows.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
The very powerful and the very stupid have one thing in common.
Instead of altering their views to fit the facts, they alter the facts
to fit their views ... which can be very uncomfortable if you happen to
be one of the facts that needs altering.
-- Doctor Who, "Face of Evil"
More information about the Filepro-list
mailing list