SIGHUP handling by the MicroRTS

Category |  Applicable to |  Description


Category:

Top

Micro-RTS


Applicable to:

Top

ObjecTime 4.4


Description:

Top

SIGHUP is handled by default by the MicroRTS (at least on Solaris). A signal handler is installed for it in the MicroRTS main.cc. ObjecTime doesn't really do anything special with it (calls thr_exit() - see man pages).

You could install your own signal handler for it to do something else. You would do it the same way it's done for SIGUSR1 in the Message Injector example. Just substitute SIGHUP for SIGUSR1 in the code.

see ($OBJECTIME_HOME/ModelExamples/MessageInjectorExample)


 

Copyright © 1999, ObjecTime Limited.