[PATCH] Fix invalid sigprocmask call

Pedro Alves palves@redhat.com
Fri Mar 24 12:58:00 GMT 2017


On 03/24/2017 12:39 PM, Yousong Zhou wrote:

> The following test case will also say for itself.
> 
>         https://github.com/juj/posixtestsuite/blob/master/conformance/interfaces/pthread_sigmask/16-1.c

It does not.  The pthread_sigmask call there does NOT pass a NULL
as "set mask" argument:

	if (pthread_sigmask(r, &actl, NULL) != EINVAL) {
		perror("pthread_sigmask() did not fail even though invalid how parameter was passed to it.\n");
		pthread_exit((void*)-1);
	}

That case _should_ fail, of course.

Please just fix musl.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list