Messages in this thread | | | Date | Mon, 4 Oct 2004 15:04:32 -0700 | From | Andrew Morton <> | Subject | Re: 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/
| |