qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Hitoshi Mitake <h.mitake@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-trivial@nongnu.org, Anthony Liguori <aliguori@us.ibm.com>,
	Andrzej Zaborowski <balrog@zabor.org>
Subject: Re: [Qemu-trivial] [PATCH v2] curses: don't initialize curses when qemu is daemonized
Date: Sun, 23 Sep 2012 01:19:55 +0900	[thread overview]
Message-ID: <CAMO-S2iSTsdOiVmeWNsPa0L9CEEVYzOb=78f0s4DmqhU5++w4Q@mail.gmail.com> (raw)
In-Reply-To: <20120922160652.GH13216@stefanha-thinkpad.localdomain>

On Sun, Sep 23, 2012 at 1:06 AM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Sat, Sep 15, 2012 at 01:15:41AM +0900, Hitoshi Mitake wrote:
>> Current qemu initializes curses even if -daemonize option is
>> passed. This cause problem because shell prompt appears without
>> calling endwin().
>>
>> This patch adds new function, is_daemonized(), to OS dependent
>> code. With this function, curses_display_init() can check that qemu is
>> daemonized or not. If daemonized, curses_display_init() isn't called
>> and the problem is avoided.
>>
>> Of course, -daemonize && -curses doesn't make sense. Users shouldn't
>> pass the arguments at the same time. But the problem is very painful
>> because Ctrl-C cannot be delivered to the terminal.
>>
>> Cc: Andrzej Zaborowski  <balrog@zabor.org>
>> Cc: Stefan Hajnoczi <stefanha@gmail.com>
>> Cc: Anthony Liguori <aliguori@us.ibm.com>
>> Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
>> Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
>> ---
>>
>> v2: is_daemonized() is now called in main(), not in curses_display_init()
>>
>> 8<---
>>  os-posix.c      |    5 +++++
>>  qemu-os-posix.h |    2 ++
>>  qemu-os-win32.h |    5 +++++
>>  vl.c            |    3 ++-
>>  4 files changed, 14 insertions(+), 1 deletions(-)
>
> There has been no further discussion so this patch is ready to go.  I
> have fixed up the coding style issues - please use scripts/checkpatch.pl
> next time (and see ./CODING_STYLE and ./HACKING).

Sorry for my coding style problems and thanks for your fix!

Thanks,
Hitoshi


      reply	other threads:[~2012-09-22 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 16:15 [Qemu-trivial] [PATCH v2] curses: don't initialize curses when qemu is daemonized Hitoshi Mitake
2012-09-22 16:06 ` Stefan Hajnoczi
2012-09-22 16:19   ` Hitoshi Mitake [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='CAMO-S2iSTsdOiVmeWNsPa0L9CEEVYzOb=78f0s4DmqhU5++w4Q@mail.gmail.com' \
    --to=h.mitake@gmail.com \
    --cc=aliguori@us.ibm.com \
    --cc=balrog@zabor.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=stefanha@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).