Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310075
b: refs/heads/master
c: 39974d0
h: refs/heads/master
i:
  310073: 5970857
  310071: 7499255
v: v3
  • Loading branch information
Al Viro committed Jun 1, 2012
1 parent 4d1b71f commit 98ada33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7f9a11a6cf1ea9ee6be3eb2b90d91327a09ad14
refs/heads/master: 39974d085d003163f61c65917c22d6c7620ffdb6
20 changes: 6 additions & 14 deletions trunk/arch/openrisc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
return -EFAULT;
}

static inline int
static inline void
handle_signal(unsigned long sig,
siginfo_t *info, struct k_sigaction *ka,
struct pt_regs *regs)
Expand All @@ -260,11 +260,13 @@ handle_signal(unsigned long sig,

ret = setup_rt_frame(sig, ka, info, sigmask_to_save(), regs);
if (ret)
return ret;
return;

block_sigmask(ka, sig);
clear_thread_flag(TIF_RESTORE_SIGMASK);

return 0;
tracehook_signal_handler(sig, info, ka, regs,
test_thread_flag(TIF_SINGLESTEP));
}

/*
Expand Down Expand Up @@ -341,18 +343,8 @@ void do_signal(struct pt_regs *regs)
* back */
restore_saved_sigmask();
} else { /* signr > 0 */

/* Whee! Actually deliver the signal. */
if (!handle_signal(signr, &info, &ka, regs)) {
/* a signal was successfully delivered; the saved
* sigmask will have been stored in the signal frame,
* and will be restored by sigreturn, so we can simply
* clear the TIF_RESTORE_SIGMASK flag */
clear_thread_flag(TIF_RESTORE_SIGMASK);
}

tracehook_signal_handler(signr, &info, &ka, regs,
test_thread_flag(TIF_SINGLESTEP));
handle_signal(signr, &info, &ka, regs);
}

return;
Expand Down

0 comments on commit 98ada33

Please sign in to comment.