On Sun, 09 Apr 2000, Theodore Hong wrote:
> > What we're really missing is a way to cleanly shut down the node, writing
> > out its cache on shutdown.
> 
> Too bad Java doesn't have signal handling.  ah, the lowest common
> denominator strikes again... 

We did find one way to do this, using the runFinalizersOnExit() method (I think
of the System or Runtime classes). Unfortunately the Sun Gods decided this was
depreciated as of 1.2, so we can't use it.

There are other issues with writing daemon's in java, I think. For example,
Unix daemon's are supposed to switch their working directory to the root so
that drives can be umounted while they run. I'm not sure we could do that even
if we tried. And there is no way to switch fork to background automatically
AFAIK.  

> theo
> 
> 
> _______________________________________________
> Freenet-dev mailing list
> Freenet-dev at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
-- 

Oskar Sandberg

md98-osa at nada.kth.se

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to