View previous topic :: View next topic |
Author |
Message |
ravalox Apprentice

Joined: 31 Jan 2005 Posts: 217
|
Posted: Tue Aug 02, 2005 1:36 pm Post subject: reemerging an application while you are running it |
|
|
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 |
|
 |
koenderoo Guru


Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Tue Aug 02, 2005 1:37 pm Post subject: |
|
|
Maybe because emerge will try to overwrite existing files  |
|
Back to top |
|
 |
RiBBiT Apprentice


Joined: 18 May 2005 Posts: 215 Location: Sweden
|
Posted: Tue Aug 02, 2005 1:57 pm Post subject: |
|
|
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 |
|
 |
koenderoo Guru


Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Tue Aug 02, 2005 1:58 pm Post subject: |
|
|
 |
|
Back to top |
|
 |
braindigitalis n00b

Joined: 01 Aug 2005 Posts: 9 Location: Nottingham, UK
|
Posted: Tue Aug 02, 2005 3:14 pm Post subject: |
|
|
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 |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Aug 02, 2005 7:40 pm Post subject: |
|
|
Moved from Installing Gentoo to Portage & Programming. |
|
Back to top |
|
 |
|