summaryrefslogtreecommitdiff
path: root/src/thread/pthread_getschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_getschedparam.c')
-rw-r--r--src/thread/pthread_getschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_getschedparam.c b/src/thread/pthread_getschedparam.c
index a994b637..05be4242 100644
--- a/src/thread/pthread_getschedparam.c
+++ b/src/thread/pthread_getschedparam.c
@@ -4,7 +4,7 @@ int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param
{
int r;
LOCK(t->killlock);
- if (t->dead) {
+ if (!t->tid) {
r = ESRCH;
} else {
r = -__syscall(SYS_sched_getparam, t->tid, param);