All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Brad Smith <brad@comstyle.com>
Cc: Fabiano Rosas <farosas@suse.de>,
	Laurent Vivier <lvivier@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [PATCH] tests/qtest: remove unused prctl/procctl headers
Date: Mon, 23 Nov 2026 09:54:27 +0000	[thread overview]
Message-ID: <awQNUzIPXGRFtpFq@redhat.com> (raw)
In-Reply-To: <awPwS_xYsv2v9oKu@humpty.home.comstyle.com>

On Mon, Nov 23, 2026 at 02:50:35AM -0500, Brad Smith wrote:
> Commit 6cbde91a2758 ("tests/qtest: use prctl(PR_SET_PDEATHSIG) as
> fallback to kill QEMU") added <sys/prctl.h> for PR_SET_PDEATHSIG on
> Linux, and commit 49e9f8644b03 ("qtest: kill orphaned qtest QEMU
> processes on FreeBSD") added <sys/procctl.h> for PROC_PDEATHSIG_CTL
> on FreeBSD. Those calls were later replaced by -run-with
> exit-with-parent=on, but the headers were left behind.
> 
> Remove them.
> 
> Signed-off-by: Brad Smith <brad@comstyle.com>
> ---
>  tests/qtest/libqtest.c | 6 ------
>  1 file changed, 6 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

> 
> diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
> index 7f66c1bbb3..f39a39b85c 100644
> --- a/tests/qtest/libqtest.c
> +++ b/tests/qtest/libqtest.c
> @@ -21,12 +21,6 @@
>  #include <sys/wait.h>
>  #include <sys/un.h>
>  #endif /* _WIN32 */
> -#ifdef __linux__
> -#include <sys/prctl.h>
> -#endif /* __linux__ */
> -#ifdef __FreeBSD__
> -#include <sys/procctl.h>
> -#endif /* __FreeBSD__ */
>  
>  #include "libqtest.h"
>  #include "libqmp.h"
> -- 
> 2.56.0
> 
> 

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|



      reply	other threads:[~2026-11-23  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  7:50 [PATCH] tests/qtest: remove unused prctl/procctl headers Brad Smith
2026-11-23  9:54 ` Daniel P. Berrangé [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=awQNUzIPXGRFtpFq@redhat.com \
    --to=berrange@redhat.com \
    --cc=brad@comstyle.com \
    --cc=farosas@suse.de \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 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.