Merge pull request #61 from lakinduakash/fix-stop

Fix stopped status not showing without restarting the ui.
This commit is contained in:
Lakindu Akash 2020-09-25 16:13:21 +05:30 committed by GitHub
commit 8612a0fc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,8 +138,7 @@ const char *build_wh_from_config(){
}
int startShell(const char *cmd) {
parse_output(cmd);
return 0;
return parse_output(cmd);
}
@ -194,6 +193,9 @@ static int init_get_running(){
return -1;
}
// Clear buffer - Otherwise old one is used
h_running_info[0] = '\0';
while (fgets(h_running_info, BUFSIZE, fp) != NULL) {
// Do whatever you want here...
//printf("%s", h_running_info);