EPICS
on Google+
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  Index 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012 
<== Date ==> <== Thread ==>

Subject: more on sequencer deletion
From: wlupton@keck.hawaii.edu (William Lupton)
To: tech-talk@aps.anl.gov
Date: Wed, 16 Feb 2000 11:59:26 -1000
Dear all,

Here's something else that might cause problems when deleting sequencers
(this refers to all versions).

This code is executed when a sequencer is deleted:

        /* Close the log file */
        if ( (pSP->logFd > 0) && (pSP->logFd != ioGlobalStdGet(1)) )
        {
                close(pSP->logFd);
                pSP->logFd = ioGlobalStdGet(1);
        }

Normally, logFd is ioGlobalStdGet(1), which is the fd associated with
stdout at the time the sequencer was started (presumably the console).
This can be overridden via a "logfile" macro.

Now, ioGlobalStdGet(1) changes when a telnet/rlogin connection is made.
Thus, if a sequencer is deleted which such a connection is active, the
console fd is likely summarily to be closed, which is not good!

The symptom that I have observed is that the IOC carries on running but
it is impossible to connect to its console or via telnet/rlogin (the
latter claim that a connection is already in place). I'm pretty sure
that this is because of the above.

If this is an issue for you, I suggest, as a workaround, simply
commenting out the 'close()' call. This will cause problems only if you
use the "logfile" macro (in which a more complicated workaround will be
required).

I'll fix this in a future version.

William


Navigate by Date:
Prev: Anyone using/supporting e2sr? Brian Bevins
Next: EPICS DLLs for Windoze95 Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012 
Navigate by Thread:
Prev: Re: Anyone using/supporting e2sr? Rozelle Wright
Next: EPICS DLLs for Windoze95 Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Tech-Talk · Bugs · Documents · Links · Google · Licensing ·