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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Creating Zombies with epicsThreadExitMain |
From: | Andrew Johnson <[email protected]> |
To: | Michael Abbott <[email protected]> |
Cc: | [email protected] |
Date: | Mon, 12 May 2008 10:41:03 -0500 |
I guess there are two separate issues here:
1. Exiting with epicsThreadExitMain() appears to be a very bad thing, at least on RHEL;
2. RHEL appears to have an unpleasant bug involving process cleanup -- how else do I have persistent zombies owned by init? Or else I'm missing something...
The iocsh() call is necessary to reproduce the problem....
Curious. I would have expected the _exit(0) call to have done everything that's necessary. As far as I can tell from the man page, _exit is pretty well guaranteed to terminate the program.
- Andrew -- Talk is cheap. Show me the code. -- Linus Torvalds