Exit when there's error on select() 65/276465/1 submit/tizen_6.5/20220617.051848
authorjiung-yu <jiung.yu@samsung.com>
Fri, 17 Jun 2022 04:54:38 +0000 (13:54 +0900)
committerJiung Yu <jiung.yu@samsung.com>
Fri, 17 Jun 2022 05:17:50 +0000 (05:17 +0000)
commit26d9f9b6204d302c8337bc2338b2aac537185382
tree2e904d56c2e173127558acc185d530fd28306deb
parent07da3912ec365e1bb33a40ce940a0d783e8f6cad
Exit when there's error on select()

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>
(cherry picked from commit 346911646d7804ee00db6a495c22fc61d188a808)
packaging/toybox.spec
toys/pending/dhcpd.c