<div dir="ltr"><div><div><div>Hi all,<br><br></div>I'm not sure what it's important, but I found that thread names (if were assigned using prctl\pthread_setname) not restored. Is it bug or not?<br><br></div>Steps for reproduce:<br></div><div>1. Start thread and assign name.<br> pthread_create(&thread, NULL, do_nothing, NULL);<br> pthread_setname_np(thread, "NOTHING_THREAD");<br></div><div>2. Check name using procfs<br>$ cat /proc/12857/task/12858/stat<br>12858 (NOTHING_THREAD) .....<br></div><div>3. Dump process with this thread<br></div><div>4. Restore process<br></div><div>5. Check again<br> cat /proc/12857/task/12858/stat<br>12858 (socketpair) .....<br><br></div><div>P.S. In pstree.img not include the thread names now, only tid.<br></div><div><br></div><div><br></div><div><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards,<div>Artem Kuzmitskiy</div><div><br></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div>