If we are unable to receive control message is most likely because the main
process died. Instead of entering infinite loop, terminate. MFC after: 3 days
This commit is contained in:
parent
351b9a37a4
commit
c56cf19ebf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213004
@ -387,7 +387,8 @@ ctrl_thread(void *arg)
|
||||
pthread_exit(NULL);
|
||||
pjdlog_errno(LOG_ERR,
|
||||
"Unable to receive control message");
|
||||
continue;
|
||||
kill(getpid(), SIGTERM);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
cmd = nv_get_uint8(nvin, "cmd");
|
||||
if (cmd == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user