Repository navigation
Commit 24122c7
committed
signal: Pass pid and pid type into send_sigqueue
Make the code more maintainable by performing more of the signal
related work in send_sigqueue.
A quick inspection of do_timer_create will show that this code path
does not lookup a thread group by a thread's pid. Making it safe
to find the task pointed to by it_pid with "pid_task(it_pid, type)";
This supports the changes needed in fork to tell if a signal was sent
to a single process or a group of processes.
Having the pid to task transition in signal.c will also make it easier
to sort out races with de_thread and and the thread group leader
exiting when it comes time to address that.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>1 parent 2118e1f commit 24122c7
3 files changed
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | | - | |
| 1667 | + | |
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
| 1671 | + | |
1671 | 1672 | | |
1672 | 1673 | | |
1673 | 1674 | | |
1674 | 1675 | | |
1675 | 1676 | | |
1676 | 1677 | | |
1677 | | - | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
1678 | 1681 | | |
1679 | 1682 | | |
1680 | 1683 | | |
| |||
1696 | 1699 | | |
1697 | 1700 | | |
1698 | 1701 | | |
1699 | | - | |
| 1702 | + | |
1700 | 1703 | | |
1701 | 1704 | | |
1702 | | - | |
| 1705 | + | |
1703 | 1706 | | |
1704 | 1707 | | |
1705 | | - | |
| 1708 | + | |
1706 | 1709 | | |
1707 | 1710 | | |
| 1711 | + | |
1708 | 1712 | | |
1709 | 1713 | | |
1710 | 1714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
| 350 | + | |
| 351 | + | |
357 | 352 | | |
358 | 353 | | |
359 | 354 | | |
| |||
0 commit comments