|
|
Re: Graceful shutdown [message #1805246 is a reply to message #1805220] |
Wed, 10 April 2019 11:41 |
|
Hi,
this strongly depends on how you shut down 4diac FORTE. The best way to do it is to send a KILL message to the device. This can either be done remotely or grammatically. On posix we have several signal handlers (e.g., sig term) . See the endForte method in src/arch/posix/main.cpp for details.
This will correctly shutdown 4diac FORTE and free all the memory as all destructors are invoked. Also the destructors from the handlers. And this is the first place where such code should go. Furthermore if this is a SIFB which will open the connection on an INIT+ you should also allow to disconnecting with INIT-. An example where this concept is followed are the communication SIFB.
I hope this helps you and solves your issue. If you need more let us know, as I think startup and shutdown is a curcial feature and it should be handled on run-time level uniformly for all.
Cheers,
Alois
|
|
|
Powered by
FUDForum. Page generated in 0.02892 seconds