[Bug 203105] Wrong description of CLONE_CHILD_SETTID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=203105

--- Comment #2 from Jakub Nowak (jakub.jakub.nowak@xxxxxxxxx) ---
Michael,

Sorry, English is not my native language. I'll try to describe it better.


I've made a mistake when I've said what the program prints, it should be:

parent, ctid: 0
child, ctid: 24379
parent, ctid: 24379

where 24379 is a tid of the child.


The sentence "The store operation completes before clone() returns control to
user space" from manual page isn't correct.

As can be seen in this example program, the ctid value printed _right after_
returning from clone() is 0.
The manual page says that it should be set before clone() returns, but it's
not.

It then prints non-zero value after the sleep. This shows that the value isn't
set before clone() returns but rather later on, after some time.


Thank you for your patience,

Jakub

-- 
You are receiving this mail because:
You are on the CC list for the bug.



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux