lkml.org 
[lkml]   [2004]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: swsusp: fix suspending with mysqld
Pavel Machek <pavel@ucw.cz> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.057 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site