I have built a stand alone sequencer (2.0.11) application, something
that is intended to be launched, run once and exit. I launch the program
with the -s option to create an iocsh.
The program runs and operates as expected but after the program exits
the behavior of the x-terminal from which the program was launched is
altered. For example, pressing the 'enter' generates a new prompt but
without a line-feed. If I type "reset" at the x-terminal command prompt
I can restore normal operation of the x-terminal.
The final state of the program is:
state finish {
entry {
ps_enable = 0;
pvPut( ps_enable, SYNC);
printf("rampTiSp cleanup\n");
}
when(delay(2)) {
exit(0);
} state finish
}
There are two state sets.
Is there a better way to exit the program?
Thanks,
John Dobbins
Cornell University
program output:
jad@erp33 $ ./bin/linux-x86/sncProgram -s
SEQ Version 2.0.11: Fri Dec 14 14:05:03 2007
Spawning state program "rampTiSP", thread 0x9190b80: "rampTiSP"
ramp_filament init
Spawning thread 0x91b0700: "rampTiSP_1"
epics> filament ramp starting
filament ramp done
rampTiSp cleanup
jad@erp33 $ jad@erp33 $ jad@erp33 $
- Replies:
- Re: stand-alone sequencer application question J. Lewis Muir
- Navigate by Date:
- Prev:
RE: errors in vxWorks-6.9/target/h(eader) files when building base 3.14.12.1 Mark Rivers
- Next:
Re: stand-alone sequencer application question J. Lewis Muir
- 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: Virtual circuit disconnect - caRepeater bug? Oleg Makarov
- Next:
Re: stand-alone sequencer application question J. Lewis Muir
- 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
|