diff options
Diffstat (limited to 'api/src/glfs.c')
-rw-r--r-- | api/src/glfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c index af2378f77aa..017a55b1be8 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -460,6 +460,7 @@ glfs_init_wait (struct glfs *fs) pthread_cond_wait (&fs->cond, &fs->mutex); ret = fs->ret; + errno = fs->err; } pthread_mutex_unlock (&fs->mutex); @@ -479,6 +480,7 @@ glfs_init_done (struct glfs *fs, int ret) { fs->init = 1; fs->ret = ret; + fs->err = errno; pthread_cond_broadcast (&fs->cond); } |