diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-07-21 11:45:15 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-07-21 13:57:35 -0400 |
commit | 40b3b02535621027f56d248139e0e467573c3098 (patch) | |
tree | d0e62a9c767d2c08265a05b3f26c3d87c1580449 /fs/fcntl.c | |
parent | 9c2db007787ef1aac6728c5e03d37b0ae935d122 (diff) |
signal: Pass pid type into do_send_sig_info
This passes the information we already have at the call sight into
do_send_sig_info. Ultimately allowing for better handling of signals
sent to a group of processes during fork.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/fcntl.c')
-rw-r--r-- | fs/fcntl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c index 5d596a00f40b..a04accf6847f 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c | |||
@@ -767,11 +767,11 @@ static void send_sigio_to_task(struct task_struct *p, | |||
767 | else | 767 | else |
768 | si.si_band = mangle_poll(band_table[reason - POLL_IN]); | 768 | si.si_band = mangle_poll(band_table[reason - POLL_IN]); |
769 | si.si_fd = fd; | 769 | si.si_fd = fd; |
770 | if (!do_send_sig_info(signum, &si, p, type != PIDTYPE_PID)) | 770 | if (!do_send_sig_info(signum, &si, p, type)) |
771 | break; | 771 | break; |
772 | /* fall-through: fall back on the old plain SIGIO signal */ | 772 | /* fall-through: fall back on the old plain SIGIO signal */ |
773 | case 0: | 773 | case 0: |
774 | do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type != PIDTYPE_PID); | 774 | do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type); |
775 | } | 775 | } |
776 | } | 776 | } |
777 | 777 | ||
@@ -808,7 +808,7 @@ static void send_sigurg_to_task(struct task_struct *p, | |||
808 | struct fown_struct *fown, enum pid_type type) | 808 | struct fown_struct *fown, enum pid_type type) |
809 | { | 809 | { |
810 | if (sigio_perm(p, fown, SIGURG)) | 810 | if (sigio_perm(p, fown, SIGURG)) |
811 | do_send_sig_info(SIGURG, SEND_SIG_PRIV, p, type != PIDTYPE_PID); | 811 | do_send_sig_info(SIGURG, SEND_SIG_PRIV, p, type); |
812 | } | 812 | } |
813 | 813 | ||
814 | int send_sigurg(struct fown_struct *fown) | 814 | int send_sigurg(struct fown_struct *fown) |