On 10/13/06, JM Ibanez <[EMAIL PROTECTED]> wrote:
jhuniepi <[EMAIL PROTECTED]> writes:

> i have started a java program in background and redirect its stdout and stderr in two different files in /tmp.
>
> # java -server ClassName > /tmp/stdout.log 2> stderr.log
>
> when the file is deleted, where does the java program dump its logs?

When you delete a file with open file handles pointing to it, the kernel
doesn't actually completely delete the file.

This is what i want to confirm.. so what had happened is that, the java programs keeps logging  in the /tmp  even if you do not see the file which, is actually a file handle only and not visible in `ls -a`, and making the /tmp 86% full, right?

In fact, it may be possible
to recover it from /proc. IIRC, the kernel won't actually free those
blocks until then.

This is all AFAIK and IIRC, from a post I read on Planet Gnome (IIRC)
some months back. Unfortunately, I can't seem to find a reference to it
at the moment.


--
JM Ibanez
Senior Software Engineer
Orange & Bronze Software Labs, Ltd. Co.

[EMAIL PROTECTED]
http://www.orangeandbronze.com/
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph



--
cj pangilinan
linux user, java programmer
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to