Skip to content
Snippets Groups Projects
Commit bf1b738d authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #7336: Only accept result code 0 as succesful from system()

parent 3a0d5392
No related branches found
No related tags found
No related merge requests found
......@@ -264,10 +264,10 @@ int32 CTStartDaemon::startController(uint16 cntlrType,
parentService.c_str());
LOG_INFO_STR("About to start: " << startCmd);
int32 result = system (startCmd.c_str());
int result = system (startCmd.c_str());
LOG_INFO_STR ("Result of start = " << result);
if (result == -1) {
if (result != 0) {
return (SD_RESULT_START_FAILED);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment