Re: swsusp: fix suspending with mysqld

From: Andrew Morton
Date: Mon Oct 04 2004 - 17:14:28 EST


Pavel Machek <pavel@xxxxxx> wrote:
>
> mysqld does signal calls in pretty tight loop, and swsusp is not able
> to stop processes in such case. This should fix it. Please apply,
>
> ...
> @@ -2260,6 +2259,8 @@
> ret = -EINTR;
> }
>
> + if (current->flags & PF_FREEZE)
> + refrigerator(1);
> return ret;
> }

This seems hacky, and arbitrary. I mean, why add this in
sys_rt_sigtimedwait()? Because that is the syscall which mysql appears to
use? What if a different application were to be using a different syscall?
Do we add a refrigerator() call there too?

Or am I missing something?
-
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/