Re: [CODE] Warmboot Patch

From: Mystra (mystra@FRADVENTURES.COM)
Date: 07/13/98

Actually, with both Windows 95 and Windows NT this will be a problem.
Depending on if the system will unlock the files once the mud is shutdown
you would have two possible ways to copy over a file.

1) Reboot and dont start the mud right off, copy the new files in, and
then start the mud.

2) If the system unlocks the files after a shutdown, then you can copy
over them normally.

Im not a programmer but this is a problem we have with some DBase apps we
have here at my company.  We have to reboot to get the files to unlock and
then we can make a change / copy.  Good old winblows eh?  Want a tougher
challenge? Try deleting an in use DLL.. GOOD LUCK, it isnt easy.

On Mon, 13 Jul 1998, Erwin S. Andreasen wrote:

> On Mon, 13 Jul 1998, Mark A. Heilpern wrote:
> > At 02:51 PM 7/13/98 -0400, you wrote:
> > >But what would you do in Windows95? When a program's being run in Win95, you
> > >can't overwrite it's code. I've tried, and it gives some dinky message box:
> > >"Unable to overwrite. File may already be in use by Windows."
> > >
> >
> > The warmboot (copyover) patch uses the un*x fork() system call;
> > as far as I know, WindowsXX has no equivelent. Unless I'm wrong
> > in this, there's nothing you can do under that O/S to solve this
> > problem.
> Actually, it writes the numbers of connected descriptors and uses exec*()
> to overlay the new copy of the MUD over the current copy - the new copy
> will not it has been restarted, and that it has some open desriptors that
> should be reconnected to players.
> It still doesn't help with Windoze however :)
> Ah, the beauty and simplicity of fork() and exec*().
> --
> ==============================================================================
> <>      Herlev, Denmark              UNIX System Programmer
> <URL:>     <*>         (not speaking for) DDE
> ==============================================================================
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | |
>      +------------------------------------------------------------+

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST