mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Jakob Lell <jlell@JakobLell.de>,
	kernel list <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@zip.com.au>
Subject: Re: Linux 2.6.3 doesn't suspend when mysqld is running.
Date: Mon, 19 Apr 2004 19:18:06 +0200	[thread overview]
Message-ID: <20040419171806.GA29218@elf.ucw.cz> (raw)
In-Reply-To: <200403231528.32795.jlell@JakobLell.de>

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?]

      parent reply	other threads:[~2004-04-19 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200402271049.14014.jlell@JakobLell.de>
     [not found] ` <200402282143.36048.jlell@JakobLell.de>
     [not found]   ` <20040228204658.GB10530@elf.ucw.cz>
     [not found]     ` <200403141727.03632.jlell@JakobLell.de>
2004-03-21 21:47       ` Pavel Machek
     [not found]         ` <200403231528.32795.jlell@JakobLell.de>
2004-04-19 17:18           ` Pavel Machek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040419171806.GA29218@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=akpm@zip.com.au \
    --cc=jlell@JakobLell.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®