[Tinyos-help] TinyOS Java SDK System.exit() calls

Pete Baker pbaker at eee.strath.ac.uk
Wed Jul 4 08:36:32 PDT 2007


Hi All,

I am building the MoteIF interface into a larger application, and  
noticed that there are about 50 calls to System.exit() throughout the  
TinyOS Java API.

While its understandable to restrict operation when a mote is not  
connected to the gateway host machine, calls to System.exit halt the  
entire java application.

So far, I have found the only way to get around this is to define a  
new SecurityManager to manage all calls to System.exit, although this  
is less than ideal.   Is there any plans to implement exception  
management in place of these calls, so mote interface-related  
failures can be degraded gracefully?  If not, would this be a  
worthwhile goal to extend the flexibility of the API?

Regards,

Pete Baker
University of Strathclyde, Glasgow, Scotland


More information about the Tinyos-help mailing list