Date: Fri, 28 Feb 2020 07:44:52 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r358421 - user/pho/stress2/misc Message-ID: <202002280744.01S7iqvO077576@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Fri Feb 28 07:44:51 2020 New Revision: 358421 URL: https://svnweb.freebsd.org/changeset/base/358421 Log: Added missing error handling. Modified: user/pho/stress2/misc/rename6.sh Modified: user/pho/stress2/misc/rename6.sh ============================================================================== --- user/pho/stress2/misc/rename6.sh Fri Feb 28 07:44:18 2020 (r358420) +++ user/pho/stress2/misc/rename6.sh Fri Feb 28 07:44:51 2020 (r358421) @@ -81,7 +81,8 @@ const char *logfile = "test.log"; void cleanup() { - kill(spid, SIGINT); + if (kill(spid, SIGINT) == -1 && errno != ESRCH) + err(1, "kill(%d)", spid); } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002280744.01S7iqvO077576>