Description: Sometimes there's an issue that dhcpd isn't killed
by SigTerm and it consumes all CPU usage.
We can't reproduce the issue but I think we can terminate
dhcpd when select returns an error and errno is not EINTR.
Change-Id: I16759a7a5eb35e594eac175496e6f5d87d7d4d25
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Name: toybox
Version: 0.6.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Single binary providing simplified versions of system commands
Group: Base/Utilities
License: BSD-2.0
waited += (unsigned) time(NULL) - timestmp;
continue;
}
- dbg("Error in select wait again...\n");
- continue;
+ dbg("Don't wait on Error in select\n");
+ exit(0);
}
if (!retval) { // Timed out
dbg("select wait Timed Out...\n");