Skip to content

Commit

Permalink
Merge pull request #163 from haircommander/cov-fix
Browse files Browse the repository at this point in the history
ctrl: warn if we fail to unlink
  • Loading branch information
rhatdan authored Jun 3, 2020
2 parents b1a50d4 + 13b8aa9 commit f12e90b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ gboolean terminal_accept_cb(int fd, G_GNUC_UNUSED GIOCondition condition, G_GNUC

/* Not accepting anything else. */
const char *csname = user_data;
unlink(csname);
if (unlink(csname) < 0)
nwarnf("failed to unlink %s", csname);
close(fd);

/* We exit if this fails. */
Expand Down

0 comments on commit f12e90b

Please sign in to comment.