public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* swsusp: fix suspending with mysqld
@ 2004-10-04 12:24 Pavel Machek
  2004-10-04 19:09 ` Jan De Luyck
  2004-10-04 22:04 ` Andrew Morton
  0 siblings, 2 replies; 5+ messages in thread
From: Pavel Machek @ 2004-10-04 12:24 UTC (permalink / raw)
  To: lkml, kernel list, Andrew Morton

Hi!

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,
								Pavel


Index: linux/kernel/signal.c
===================================================================
--- linux.orig/kernel/signal.c	2004-10-01 12:24:26.000000000 +0200
+++ linux/kernel/signal.c	2004-10-01 01:00:26.000000000 +0200
@@ -1483,8 +1483,7 @@
 	unsigned long flags;
 	struct sighand_struct *psig;
 
-	if (sig == -1)
-		BUG();
+	BUG_ON(sig == -1);
 
  	/* do_notify_parent_cldstop should have been called instead.  */
  	BUG_ON(tsk->state & (TASK_STOPPED|TASK_TRACED));
@@ -2260,6 +2259,8 @@
 			ret = -EINTR;
 	}
 
+	if (current->flags & PF_FREEZE)
+		refrigerator(1);
 	return ret;
 }
 

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-05 14:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 12:24 swsusp: fix suspending with mysqld Pavel Machek
2004-10-04 19:09 ` Jan De Luyck
2004-10-04 22:26   ` Pavel Machek
2004-10-05 14:46     ` Jan De Luyck
2004-10-04 22:04 ` Andrew Morton

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