Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reemerging an application while you are running it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ravalox
Apprentice
Apprentice


Joined: 31 Jan 2005
Posts: 217

PostPosted: Tue Aug 02, 2005 1:36 pm    Post subject: reemerging an application while you are running it Reply with quote

This is more of my idle(and possibly sick) curiousity peeking out of it's hole in the earth, but is there a big reason why I couldn't, say reemerge xorg while I'm running it? Would it just not be able to overwrite certain files because tehy are in use and exit, or would it work?

Last edited by ravalox on Tue Aug 02, 2005 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Tue Aug 02, 2005 1:37 pm    Post subject: Reply with quote

:idea: Maybe because emerge will try to overwrite existing files :idea:
Back to top
View user's profile Send private message
RiBBiT
Apprentice
Apprentice


Joined: 18 May 2005
Posts: 215
Location: Sweden

PostPosted: Tue Aug 02, 2005 1:57 pm    Post subject: Reply with quote

You can reemerge any application while running it. The files that are in use are loaded into RAM so deleting them from disk will do nothing to that instance of the application.
_________________
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Back to top
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Tue Aug 02, 2005 1:58 pm    Post subject: Reply with quote

:oops:
Back to top
View user's profile Send private message
braindigitalis
n00b
n00b


Joined: 01 Aug 2005
Posts: 9
Location: Nottingham, UK

PostPosted: Tue Aug 02, 2005 3:14 pm    Post subject: Reply with quote

RiBBiT wrote:
You can reemerge any application while running it. The files that are in use are loaded into RAM so deleting them from disk will do nothing to that instance of the application.


Be careful when rebuilding libraries. Shared libraries are loaded into memory as memory mapped files, which means theyre accessed faster (the disk file is essentially mapped in as part of the swap). This does however mean that if you overwrite the library without deleting it first with rm, it will crash horribly with a segfault. /bin/install will rm the file first properly, some utilities may not.
_________________
http://www.inspircd.org/ - Modular C++ IRC Daemon
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Aug 02, 2005 7:40 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum