svn commit: r358421 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Fri Feb 28 07:44:53 UTC 2020
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
More information about the svn-src-user
mailing list