mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
Don't die in kthread_create()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
9e5d774875
commit
fb2d506f6f
@ -80,7 +80,7 @@ struct task_struct *kthread_create(int (*thread_fn)(void *data),
|
||||
|
||||
ret = pthread_create(&p->thread, &attr, kthread_start_fn, p);
|
||||
if (ret)
|
||||
die("pthread_create error %s", strerror(ret));
|
||||
return ERR_PTR(-ret);
|
||||
pthread_setname_np(p->thread, p->comm);
|
||||
return p;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user