EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Winsock error10004
From: "Mark Rivers" <[email protected]>
To: "J. Lewis Muir" <[email protected]>, "Jeff Hill" <[email protected]>
Cc: Mark Clift <[email protected]>, [email protected]
Date: Fri, 24 Apr 2009 13:36:36 -0500
Thanks to Lewis for pointing our that the areaDetector main programs were not calling epicsExit(0).  They should have been, and that was causing a problem on Linux, where typing exit would NOT exit, it would hang.  The only way to kill the IOC was to type ^C.
 
I just added the epicsExit(0) call, and it fixes that problem on Linux.  I also checked that it does not introduce the problem Mark Clift is seeing on win32-x86, those IOCs continue to exit cleanly with no errors.  I am building everything statically on both win32-x86 and linux-x86.
 
Mark
 

________________________________

From: [email protected] on behalf of J. Lewis Muir
Sent: Fri 4/24/2009 11:01 AM
To: Jeff Hill
Cc: 'Mark Clift'; [email protected]
Subject: Re: Winsock error10004



On 4/24/09 11:42 AM, Jeff Hill wrote:
>> * Strangely, the ioc's that build under areaDetector 1-4 using
>>   win32-x86, do not have this error on exit and run fine.
>
> One possible difference could be systems with and without SMP
> (multi-core cpu or not). Alternatively, statically built or not might
> change the order of process rundown as executed by windows (i.e.
> threads stopped first versus shareable libraries unmapped from memory
> first).

Another possible difference is that the areaDetector IOCs don't invoke
epicsExit before returning from their main function; other IOCs do.

Lewis




Replies:
RE: Winsock error10004 Mark Clift
References:
Winsock error10004 Mark Clift
RE: Winsock error10004 Jeff Hill
Re: Winsock error10004 J. Lewis Muir

Navigate by Date:
Prev: RE: ITER call for expertise in the use of and development in the EPICS software environment Di Maio Franck
Next: dbCaPutLinkCallback crash in 3.14.10 on cygwin Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Winsock error10004 J. Lewis Muir
Next: RE: Winsock error10004 Mark Clift
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·