Riddle me on this one

Yanni Chiu yanni-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun Jan 22 03:30:40 UTC 2012


On 21/01/12 10:12 PM, Christopher Browne wrote:
> a) You're actually out of space, there's no place for the rotation
> process to do its work.

Couldn't the rotation process use file space from a different disk 
partition to accomplish its work?

> b) If the only remaining file descriptor is held by some live process,
> and the file is otherwise unlinked, log rotation will also do you no
> good, as it has no way of getting at the file to suck data out of it.

Would this work:
- attach to live process with a debugger
- figure out which file descriptor corresponded to the log file
- poke a program into memory at some innocuous location
- the program would copy the log file to another file (on another disk 
partition)
- then the original log file could be truncated
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list