public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v6 2/3] Add a library wrapper for sigaction()
Date: Tue, 13 Mar 2018 13:27:29 +0100	[thread overview]
Message-ID: <20180313122729.GB19715@rei> (raw)
In-Reply-To: <20180309124418.30271-3-mmoese@suse.de>

Hi!
> +static inline int safe_sigaction(const char *file, const int lineno,
> +				 int signum, const struct sigaction *act,
> +				 struct sigaction *oldact)
> +{
> +	int rval;
> +
> +	rval = sigaction(signum, act, oldact);
> +
> +	if (rval == -1) {
> +		tst_brk_(file, lineno, TBROK | TERRNO,
> +			"sigaction(%d, %p, %p) failed", signum, act, oldact);
                                   ^
				   I've added tst_strsig() here as well
				   to get better error messages.

And I had to move the function the C source to avoid tst_strsig()
redefinition warnings...

And pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2018-03-13 12:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-09 12:44 [LTP] [PATCH v6 0/3] Add regression test for CVE-2017-17053 Michael Moese
2018-03-09 12:44 ` [LTP] [PATCH v6 1/3] Add library support for /proc/sys/kernel/tainted Michael Moese
2018-03-13 12:26   ` Cyril Hrubis
2018-03-09 12:44 ` [LTP] [PATCH v6 2/3] Add a library wrapper for sigaction() Michael Moese
2018-03-13 12:27   ` Cyril Hrubis [this message]
2018-03-09 12:44 ` [LTP] [PATCH v6 3/3] Add regression test for CVE-2017-17053 Michael Moese
2018-03-13 12:27   ` Cyril Hrubis
2018-03-22  7:21 ` [LTP] [PATCH v6 0/3] " Xiao Yang
2018-03-27  9:48   ` Xiao Yang
2018-03-27  9:58     ` Michael Moese
2018-03-27 13:01     ` Cyril Hrubis

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=20180313122729.GB19715@rei \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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