EVALUATION
This problem is not reproducible on Redhat 6.2 or Redhat 7.1. It's only
reproducible on Redhat 7.0.
hui.huang@Eng 2001-06-07
----------------------------------------------------------------
This is a glibc bug. See detailed discussion at Redhat bugzilla:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=23758
Basically, if the thread that does exit() is not the main thread,
the parent process (or shell) will always get 0 as exit value.
As happened in this testcase, the VM thread which handles VM_Exit
is not the main thread, so the exit code was not properly carried
to its parent. The fix is in glibc-2.2.1-2.
hui.huang@Eng 2001-06-07
|