mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* missing a wakeup from pending signal
@ 2003-02-14  3:35 William Chow
  0 siblings, 0 replies; only message in thread
From: William Chow @ 2003-02-14  3:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: lilbilchow

I am finding that my kernel thread will occasionally
fail to wake up eventhough it has a signal pending.
The thread is calling wait_event_interruptible and
waiting for SIGIO (from the sg driver). I only see it
fail to wake up when performing intensive sg activity.
>From kdb, the task shows the signal was delivered
(sigpending==1 and pending.signal.sig[0]==0x10000000).

So, I was just wondering if anyone was aware of a fix
(I'm using 2.4.18 on i386). A google search failed to
turn up anything obvious. My code is pretty basic
stuff but here the wait loop just in case:

for (;;) {
  gotsig = wait_event_interruptible();
  if (gotsig) {
    sigemptyset(&set);
    spin_lock_irq(&current->sigmask_lock);
    signum = dequeue_signal(&set, &info);
    spin_unlock_irq(&current->sigmask_lock);
    if (signum != SIGIO)
      break;
    process_io();
  }
}

Please CC me in the response. Thanks in advance.

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-14  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14  3:35 missing a wakeup from pending signal William Chow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®