All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>,
	stefanha@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Fix core dump suppression in test 039
Date: Wed, 14 May 2014 16:28:06 +0200	[thread overview]
Message-ID: <20140514142806.GK3610@noname.redhat.com> (raw)
In-Reply-To: <20140514132802.GB19672@T430.nay.redhat.com>

Am 14.05.2014 um 15:28 hat Fam Zheng geschrieben:
> On Wed, 05/14 15:12, Markus Armbruster wrote:
> > The shell script attempts to suppress core dumps like this:
> > 
> >     old_ulimit=$(ulimit -c)
> >     ulimit -c 0
> >     $QEMU_IO arg...
> >     ulimit -c "$old_ulimit"
> > 
> > This breaks the test hard unless the limit was zero to begin with!
> > ulimit sets both hard and soft limit by default, and (re-)raising the
> > hard limit requires privileges.  Broken since it was added in commit
> > dc68afe.
> > 
> > Could be fixed by adding -S to set only the soft limit, but I'm not
> > sure how portable that is in practice.  Simply do it in a subshell
> > instead, like this:
> > 
> >     (ulimit -c 0; exec $QEMU_IO arg...)
> > 
> > Signed-off-by: Markus Armbruster <armbru@redhat.com>
> 
> Reviewed-by: Fam Zheng <famz@redhat.com>

Thanks, applied to the block branch.

Kevin

  reply	other threads:[~2014-05-14 14:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 13:12 [Qemu-devel] [PATCH] qemu-iotests: Fix core dump suppression in test 039 Markus Armbruster
2014-05-14 13:28 ` Fam Zheng
2014-05-14 14:28   ` Kevin Wolf [this message]
2014-05-26  9:10     ` Markus Armbruster
  -- strict thread matches above, loose matches on Subject: below --
2014-05-13  8:46 Markus Armbruster
2014-05-13  9:22 ` Fam Zheng
2014-05-13 11:30   ` Markus Armbruster
2014-05-13 12:43     ` Fam Zheng
2014-05-13 17:44   ` Markus Armbruster
2014-05-13 19:30     ` Eric Blake
2014-05-14  7:58     ` Kevin Wolf
2014-05-14  9:25       ` Markus Armbruster
2014-05-14 11:16         ` Markus Armbruster
2014-05-14 11:42           ` Kevin Wolf

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=20140514142806.GK3610@noname.redhat.com \
    --to=kwolf@redhat.com \
    --cc=armbru@redhat.com \
    --cc=famz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.