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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Creating Zombies with epicsThreadExitMain |
From: | Andrew Johnson <[email protected]> |
To: | Michael Abbott <[email protected]> |
Cc: | [email protected] |
Date: | Tue, 13 May 2008 11:01:52 -0500 |
Ah, I misunderstood that -- however, it's a red herring in the current case, as something is going horribly wrong on my machine when we do this.
I need to dig a bit into the pthread specification, but I'm sure I remember that _exit() is supposed to kill *everything* stone cold dead without ceremony.
What exactly does epicsThreadExitMain() do to try and close the top level thread without terminating the process? When I've had to do this in my own processes I've found it easiest to just created a semaphore and block on it.
- Andrew -- Talk is cheap. Show me the code. -- Linus Torvalds