Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Apr 2003 10:36:21 -0800
From:      Johnson David <DavidJohnson@Siemens.com>
To:        Anselme <anselme@netcourrier.com>, FreeBSD-Newbies <freebsd-newbies@FreeBSD.ORG>
Subject:   Re: portupgrade when running an application ?
Message-ID:  <200304041036.21678.DavidJohnson@Siemens.com>
In-Reply-To: <1049443564.277.12.camel@Toto.dippgw.homedns.org>
References:  <1049443564.277.12.camel@Toto.dippgw.homedns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 04 April 2003 12:06 am, Anselme wrote:
> Hi everyboddy,
>
> I wonder if there is any probleme to upgrade an application when this
> one is running ?

For some programs there may be, but so far I haven't encountered any. In 
fact, I've been able to upgrade the base OS and all installed ports 
while surfing the web and other desktop activities, and only needed one 
reboot. Wow! I don't know if I would recommend it, but it is possible.

> $ portupgrade -Rr XFree86
>
> By the way, after the portpgrade, when does the new XFree86_4_03 will
> be take in charge by my computer ? the next time I reboot ?

(answering a somewhat technical question since this is more of a "how 
does stuff work" rather than a "how do I do this" question)

There's actually two halves to X, the server and the client libraries, 
and they talk to each other through a standard protocol. The old server 
will keep on running until you restart X. Applications that use the 
client libraries will use the new version when they are started, but 
currently running applications will continue to use the old version 
loaded in memory. Read up the technical pages for XFree86 and the X11 
protocol for more information.

The best way to ensure that everything is synced up with the new version 
is just to restart X, typically by logging out of X and starting it up 
again. But because of the X11 protocol, it isn't really necessary 
unless you want to utilize some new features in the newly installed 
version.

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304041036.21678.DavidJohnson>