Skip to content

Commit

Permalink
improve: add response when wdctlx stop&refresh
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Oct 5, 2024
1 parent 9253fce commit 8a322c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wdctl_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,15 @@ wdctl_status(struct bufferevent *fd)
static void
wdctl_stop(struct bufferevent *fd)
{
bufferevent_write(fd, "Yes", 3);
pid_t pid = getpid();
kill(pid, SIGINT);
}

static void
wdctl_refresh(struct bufferevent *fd)
{
bufferevent_write(fd, "Yes", 3);
pid_t pid = getpid();
kill(pid, SIGUSR1);
}
Expand Down

0 comments on commit 8a322c1

Please sign in to comment.