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: Problem with cothread-1-12 on MacOSX (Leopard)
From: Juan Carlos Guzman <[email protected]>
To: Michael Abbott <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Wed, 11 Mar 2009 14:45:50 +1100
Hi Michael,


On Tue, 10 Mar 2009, Michael Abbott wrote:
On Tue, 10 Mar 2009, Abbott, MG (Michael) wrote:
stdin, ... is a device and therefore doesn't work with darwin's
poll. In this case poll just spews POLLNVAL
Ok, so poll() on Darwin is busted.

Looks like I'll have to code up an emulation of poll() using select() and

Juan,

Can you try the attached patch and let me know how things behave.

This is a quick and dirty hack, if it's ok I'll work up a proper release.

The problem with using select is that its error handling is lousy: if any
file handle is invalid I have to back out and individually call select()
on each handle, one by one, to find the offending ones.
It works!. I just did quick check only with caget() and works fine using the python interpreter. All my previous attempts were also done using the interactive interpreter. I tested the camonitor.py script in tests area and it also works under Mac.

Thanks a lot for your quick fix and response.

Cheers,
  Juan.

----------
Juan Carlos Guzman
Software Engineer
CSIRO Australia Telescope National Facility (ATNF)
P.O.Box 76, Epping NSW 1710, Australia
Phone: +61 2 9372 4457
Fax: +61 2 9372 4310






References:
RE: Problem with cothread-1-12 on MacOSX (Leopard) Abbott, MG (Michael)
RE: Problem with cothread-1-12 on MacOSX (Leopard) Michael Abbott
RE: Problem with cothread-1-12 on MacOSX (Leopard) Michael Abbott

Navigate by Date:
Prev: Two EDM questions Szalata, Zenon M.
Next: Re: Looking for feedback on what epics users require Ralph Lange
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: Problem with cothread-1-12 on MacOSX (Leopard) Michael Abbott
Next: Looking for feedback on what epics users require Pawel Kowalski - BiRa Systems Inc.
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 ·