Set the return value of a main thread to NULL when it wouldn't
otherwise be set to anything useful.
/* ---------------------------------------------------------------------------
/* ---------------------------------------------------------------------------
- * $Id: Schedule.c,v 1.101 2001/10/23 10:54:14 simonmar Exp $
+ * $Id: Schedule.c,v 1.102 2001/10/23 11:28:51 simonmar Exp $
*
* (c) The GHC Team, 1998-2000
*
*
* (c) The GHC Team, 1998-2000
*
pthread_cond_broadcast(&m->wakeup);
break;
case ThreadKilled:
pthread_cond_broadcast(&m->wakeup);
break;
case ThreadKilled:
+ if (m->ret) *(m->ret) = NULL;
*prev = m->link;
if (was_interrupted) {
m->stat = Interrupted;
*prev = m->link;
if (was_interrupted) {
m->stat = Interrupted;
m->stat = Success;
return;
} else {
m->stat = Success;
return;
} else {
+ if (m->ret) { *(m->ret) = NULL; };
if (was_interrupted) {
m->stat = Interrupted;
} else {
if (was_interrupted) {
m->stat = Interrupted;
} else {