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:
Pawel Jakub Dawidek 2010-09-22 18:39:43 +00:00
parent 351b9a37a4
commit c56cf19ebf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213004

View File

@ -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) {