NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51861: [PATCH] tests/lib/libc/sys/t_select: various fixes



The following reply was made to PR bin/51861; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51861: [PATCH] tests/lib/libc/sys/t_select: various fixes
Date: Thu, 12 Jan 2017 23:07:44 -0800

 --Apple-Mail=_6C5AD51E-11B4-4024-BD92-C87CC6AC8A34
 Content-Disposition: attachment;
 	filename=t_select-mark-signo-__unused-and-dont-permit-runaway-child.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_select-mark-signo-__unused-and-dont-permit-runaway-child.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: lib/libc/sys/t_select.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/sys/t_select.c,v
 retrieving revision 1.3
 diff -u -r1.3 t_select.c
 --- lib/libc/sys/t_select.c	18 Mar 2012 07:00:52 -0000	1.3
 +++ lib/libc/sys/t_select.c	13 Jan 2017 06:48:16 -0000
 @@ -47,13 +47,13 @@
  static sig_atomic_t keep_going = 1;
  
  static void
 -sig_handler(int signum)
 +sig_handler(int signum __unused)
  {
  	keep_going = 0;
  }
  
  static void
 -sigchld(int signum)
 +sigchld(int signum __unused)
  {
  }
  
 @@ -127,6 +127,7 @@
  		    "after timeout %s != %s",
  		    prmask(&nset, nbuf, sizeof(nbuf)),
  		    prmask(&oset, obuf, sizeof(obuf)));
 +	_exit(0);
  }
  
  ATF_TC(pselect_sigmask);
 @@ -146,6 +147,7 @@
  	switch (pid = fork()) {
  	case 0:
  		child(NULL);
 +		break;
  	case -1:
  		err(1, "fork");
  	default:
 
 --Apple-Mail=_6C5AD51E-11B4-4024-BD92-C87CC6AC8A34--
 


Home | Main Index | Thread Index | Old Index