diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2000-09-01 13:33:04 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2000-09-01 13:33:04 +0000 |
commit | 4d1cb41ef99377ca1d9708a72dfc2f1df38cf685 (patch) | |
tree | cbd6d6868bcc5a9483296cd5fba9e202191c107e /gthread/gthread-posix.c | |
parent | 64bbfbb6dae9a6f9f5b839b85beb42c3d7f2a790 (diff) |
Use GError to report errors as well.
2000-09-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread-solaris.c (g_thread_create_solaris_impl): Use GError to
report errors as well.
Diffstat (limited to 'gthread/gthread-posix.c')
-rw-r--r-- | gthread/gthread-posix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gthread/gthread-posix.c b/gthread/gthread-posix.c index 4be752d68..5516a2964 100644 --- a/gthread/gthread-posix.c +++ b/gthread/gthread-posix.c @@ -287,13 +287,15 @@ g_thread_create_posix_impl (GThreadFunc thread_func, posix_check_for_error (pthread_attr_destroy (&attr)); - if (ret) + if (ret == EAGAIN) { g_set_error (error, G_THREAD_ERROR, G_THREAD_ERROR_AGAIN, "Error creating thread: %s", g_strerror (ret)); return; } + posix_check_for_error (ret); + #ifdef G_THREADS_IMPL_DCE if (!joinable) posix_check_for_error (pthread_detach (thread)); |