UnixManagerThreadInit needs to return a failure code if the socket
fails to initialize to avoid entering the UnixManager loop which
will continuously fail on the call to bind, as no listening
socket was setup.
This can occur when the socket fails to initialize due to a
permissions error and fatal init errors is not on.
} else {
SCLogWarning(SC_ERR_INITIALIZATION,
"Unable to create unix command socket");
- return TM_ECODE_OK;
+ return TM_ECODE_FAILED;
}
}