{
int i, rcode;
int found;
- pthread_t self = pthread_self();
+ pthread_t self;
+
+ if (!exec_initialized) return waitpid(pid, status, options);
/*
* We're only allowed to wait for a SPECIFIC pid.
return -1;
}
+ self = pthread_self();
+
/*
* Find the PID to wait for, starting at an index within
* the array. This makes the lookups O(1) on average,
{
int i;
+ if (!exec_initialized) return 0;
+
/*
* Find the PID to wait for, starting at an index within
* the array. This makes the lookups O(1) on average,