Am 17.11.2010 um 17:30 schrieb Andrew Johnson:
> Hi Burkhard,
>
> On Wednesday 17 November 2010 05:03:06 Burkhard Kolb wrote:
>> How do I properly exit a soft-ioc when a record detects some malfunction?
>> I tried epicsExit(), but that does not work from the subRecord which I
>> trigger form a calcout record.
>
> What does the epicsExit() call do when you use it? That is how you're meant
> to shut down the IOC, but there may be drivers running which haven't properly
> registered an epicsAtExit() routine to stop their background threads, which
> can result in the process not stopping properly. What extra code are you
> including in the IOC?
The extra code is a library which uses RPC (sun...) to communicate. This is also the
component which apparently hangs until there is a "RPC Timeout" which actually takes
pretty long.
When the epicsExit call is executed the IOC hangs, the clients report after some
time the connection loss, but procServ does not restart the IOC because it's not completely
exited yet.
Burkhard
>
> - Andrew
> --
> If a man is offered a fact which goes against his instincts, he will
> scrutinize it closely, and unless the evidence is overwhelming, he will
> refuse to believe it. If, on the other hand, he is offered something
> which affords a reason for acting in accordance to his instincts, he
> will accept it even on the slightest evidence. -- Bertrand Russell
>
- Replies:
- Re: How to shutdown/restart a soft-ioc from a (watchdog) record Ralph Lange
- RE: How to shutdown/restart a soft-ioc from a (watchdog) record Al Honey
- References:
- How to shutdown/restart a soft-ioc from a (watchdog) record Burkhard Kolb
- Re: How to shutdown/restart a soft-ioc from a (watchdog) record Andrew Johnson
- Navigate by Date:
- Prev:
Anyone tried connecting a client to a local server on vxWorks 6.3? lorna . zhang
- Next:
Re: How to shutdown/restart a soft-ioc from a (watchdog) record Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: How to shutdown/restart a soft-ioc from a (watchdog) record Andrew Johnson
- Next:
Re: How to shutdown/restart a soft-ioc from a (watchdog) record Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|