Subject: |
Re: How to shutdown/restart a soft-ioc from a (watchdog) record |
From: |
Andrew Johnson <[email protected]> |
To: |
[email protected] |
Date: |
Thu, 18 Nov 2010 11:58:04 -0500 |
On Thursday 18 November 2010 08:32:00 Burkhard Kolb wrote:
> Hi Ralph,
> yes, I tried that. It exits only the thread. Same happens also when I try
> "exit" on the iocsh. If I do a ^X in procServ, it kills it immediately -
> fine. But I wanted to automate this.
Instead of doing the signal thing you should probably call _exit():
The function _exit() terminates the calling process "immediately". Any
open file descriptors belonging to the process are closed; any children
of the process are inherited by process 1, init, and the processâs par-
ent is sent a SIGCHLD signal.
The function _exit() is like exit(), but does not call any functions
registered with atexit() or on_exit(). ...
- 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
- 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 Ralph Lange
- Re: How to shutdown/restart a soft-ioc from a (watchdog) record Burkhard Kolb
- Navigate by Date:
- Prev:
Re: MCA (Matlab Channel Access) new version Andrew Johnson
- Next:
RE: How to shutdown/restart a soft-ioc from a (watchdog) record Al Honey
- 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 Burkhard Kolb
- Next:
RE: How to shutdown/restart a soft-ioc from a (watchdog) record Al Honey
- 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
|