g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: epicsAtExit
From: Andrew Johnson <anj@aps.anl.gov>
To: "Szalata, Zenon M." <zms@slac.stanford.edu>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 28 Jun 2012 14:24:47 -0500
Hi Zen,

On 2012-06-28 Szalata, Zenon M. wrote:
> Is it desirable
> to have the vxWorks routine sysAtReboot(), that is, how important it is? I
> could ask Ernest to include whatever needs to be included and rebuild
> vxWorks to have this routine available.

The advantage of having it is that vxWorks IOCs get to shut down their CA 
other network connections nicely.  It might be essential with some badly-
written network attached devices though, I think there were some LAN-GPIB 
devices that really needed it.  The rebootHookAdd() call that you're using is 
fine if you only need to disable hardware interrupts, but by the time the 
epicsAtExit() routines get to run the vxWorks network stack has been shut down 
so the CA server and any Asyn network Port code can't close their sockets 
properly.

> On the other hand, adding
> rebootHookAdd(epicsExitCallAtExits) to my st.cmd file fixes my immediate
> problem. Thank you again,

It sounds like you don't /need/ the sysAtReboot() code for your IOC, although 
having it would remove the need for you to run that yourself.  If Ernest wants 
to add it he can find out what to do here:
    http://www.aps.anl.gov/epics/tech-talk/2005/msg00004.php

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
RE: epicsAtExit Mark Rivers
References:
epicsAtExit Szalata, Zenon M.
Re: epicsAtExit Andrew Johnson
RE: epicsAtExit Szalata, Zenon M.

Navigate by Date:
Prev: RE: epicsAtExit Szalata, Zenon M.
Next: RE: epicsAtExit Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: RE: epicsAtExit Szalata, Zenon M.
Next: RE: epicsAtExit Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·