Explorar o código

[LibOS] Set clear_child_tid value for the calling thread on set_tid_address()

Isaku Yamahata %!s(int64=5) %!d(string=hai) anos
pai
achega
c7296d2512
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      LibOS/shim/src/sys/shim_getpid.c

+ 2 - 1
LibOS/shim/src/sys/shim_getpid.c

@@ -57,8 +57,9 @@ pid_t shim_do_getppid (void)
 
 int shim_do_set_tid_address (int * tidptr)
 {
+    /* http://man7.org/linux/man-pages/man2/set_tid_address.2.html */
     struct shim_thread * cur = get_cur_thread();
-    cur->set_child_tid = tidptr;
+    cur->clear_child_tid = tidptr;
     return cur->tid;
 }