diff options
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
| -rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 2fa55eda0ac..e1f87f4446c 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -884,8 +884,8 @@ posix_spawn_janitor_thread (xlator_t *this)          LOCK (&priv->lock);          {                  if (!priv->janitor_present) { -                        ret = pthread_create (&priv->janitor, NULL, -                                              posix_janitor_thread_proc, this); +                        ret = gf_thread_create (&priv->janitor, NULL, +						posix_janitor_thread_proc, this);                          if (ret < 0) {                                  gf_log (this->name, GF_LOG_ERROR, @@ -1227,8 +1227,8 @@ posix_spawn_health_check_thread (xlator_t *xl)                  if (priv->health_check_interval == 0)                          goto unlock; -                ret = pthread_create (&priv->health_check, NULL, -                                      posix_health_check_thread_proc, xl); +                ret = gf_thread_create (&priv->health_check, NULL, +					posix_health_check_thread_proc, xl);                  if (ret < 0) {                          priv->health_check_interval = 0;                          priv->health_check_active = _gf_false;  | 
