Cygwin: sigproc: Avoid segfault caused by signal just after fork().
- The commit "Cygwin: always add sigmask to child info" also tries to fix this issue, however, did not fix enough. This patch fixes that.
This commit is contained in:
parent
323b61f271
commit
aa9b5262f2
|
@ -1356,9 +1356,9 @@ wait_sig (VOID *)
|
||||||
when _main_tls points to the system-allocated stack, not to
|
when _main_tls points to the system-allocated stack, not to
|
||||||
the parent thread. In that case find_tls fails, and we fetch
|
the parent thread. In that case find_tls fails, and we fetch
|
||||||
the sigmask from the child_info passed from the parent. */
|
the sigmask from the child_info passed from the parent. */
|
||||||
tl_entry = cygheap->find_tls (_main_tls);
|
if (cygwin_finished_initializing)
|
||||||
if (tl_entry)
|
|
||||||
{
|
{
|
||||||
|
tl_entry = cygheap->find_tls (_main_tls);
|
||||||
dummy_mask = _main_tls->sigmask;
|
dummy_mask = _main_tls->sigmask;
|
||||||
cygheap->unlock_tls (tl_entry);
|
cygheap->unlock_tls (tl_entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue