Re: Linux 2.6.3 doesn't suspend when mysqld is running.

From: Pavel Machek
Date: Mon Apr 19 2004 - 12:19:58 EST


Hi!

> this patch also didn't fix the problem. You can use the program below to test
> whether a patch fixes the problem yourself. If you can't suspend while this
> program is running, then the patch doesn't fix the problem.

Okay, this one should work. Hmm, but I'm not quite sure its the right
fix.

Pavel

> #include <signal.h>
> #include <errno.h>
> #include <stdlib.h>
>
> int main(int argc,char ** argv){
> sigset_t set;
> int sig;
> sigemptyset(&set);
> while(sigwait(&set,&sig)==EINTR);
> return 0;
> }


--- clean/kernel/signal.c 2004-04-07 22:57:17.000000000 +0200
+++ linux/kernel/signal.c 2004-04-19 19:08:47.000000000 +0200
@@ -2134,6 +2134,8 @@
if (timeout)
ret = -EINTR;
}
+ if (current->flags & PF_FREEZE)
+ refrigerator(1);

return ret;
}


--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/