Fix stopped status not showing without restarting the ui.

This commit is contained in:
Lakindu Akash 2020-09-25 16:05:12 +05:30
parent 1e23c4e306
commit 8e3bed1acd
No known key found for this signature in database
GPG Key ID: 87D9889F7A634A38

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);