Ticket #2228: 0001-posix-timer-Forward-signal-to-all-threads.patch

File 0001-posix-timer-Forward-signal-to-all-threads.patch, 960 bytes (added by Daniel Krüger, on Dec 17, 2014 at 12:44:12 PM)
  • cpukit/posix/src/timertsr.c

    From c5946a3cba3bd85288b1177c3710ca1951d7b0b9 Mon Sep 17 00:00:00 2001
    From: Daniel Krueger <daniel.krueger@systec-electronic.com>
    Date: Fri, 28 Nov 2014 10:52:05 +0000
    Subject: [PATCH 1/6] posix timer: Forward signal to all threads
    
    Previously, the signal was sent only to the thread which created the
    timer. But this semantic does not match the Linux one.
    
    Signed-off-by: Daniel Krueger <daniel.krueger@systec-electronic.com>
    ---
     cpukit/posix/src/timertsr.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/cpukit/posix/src/timertsr.c b/cpukit/posix/src/timertsr.c
    index fbbdf59..a9c1fce 100644
    a b void _POSIX_Timer_TSR( 
    7272   * specified for that signal is simulated
    7373   */
    7474
    75   if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
     75  if ( kill ( getpid(), ptimer->inf.sigev_signo ) ) {
    7676    /* XXX error handling */
    7777  }
    7878