Skip to content

Commit

Permalink
Merge pull request #61 from lakinduakash/fix-stop
Browse files Browse the repository at this point in the history
Fix stopped status not showing without restarting the ui.
  • Loading branch information
lakinduakash authored Sep 25, 2020
2 parents e89b7c9 + 8e3bed1 commit 8612a0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/h_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ const char *build_wh_from_config(){
}

int startShell(const char *cmd) {
parse_output(cmd);
return 0;
return parse_output(cmd);
}


Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8612a0f

Please sign in to comment.