Skip to content

Commit 8fe65ee

Browse files
committed
pthread_t is unsigned.
1 parent 3f23e9d commit 8fe65ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/gridftp_hdfs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ hdfs_activate(void)
258258
globus_gfs_log_message(GLOBUS_GFS_LOG_ERR, "Unable to initialize global mutex");
259259
return 1;
260260
}
261-
g_thread_id = -1;
261+
g_thread_id = 0;
262262
g_thread_pipe_fd = -1;
263263

264264
globus_extension_registry_add(
@@ -286,12 +286,12 @@ hdfs_deactivate(void)
286286
}
287287
void *retval;
288288
pthread_join(g_thread_id, &retval);
289-
g_thread_id = -1;
289+
g_thread_id = 0;
290290
g_thread_pipe_fd = -1;
291291
}
292292

293293
globus_mutex_destroy(&g_hdfs_mutex);
294-
g_thread_id = -1;
294+
g_thread_id = 0;
295295
g_thread_pipe_fd = -1;
296296

297297
globus_extension_registry_remove(
@@ -803,7 +803,7 @@ set_close_done(
803803
}
804804
void *retval;
805805
pthread_join(g_thread_id, &retval);
806-
g_thread_id = -1;
806+
g_thread_id = 0;
807807
g_thread_pipe_fd = -1;
808808
}
809809
}

0 commit comments

Comments
 (0)