Skip to content

Commit

Permalink
libwtmpdb: handle ECONNRESET as wtmpdbd not running
Browse files Browse the repository at this point in the history
  • Loading branch information
thkukuk committed Dec 20, 2024
1 parent 6ecf2da commit 1ca5e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libwtmpdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static int varlink_is_enforced = 0;
/* we can use varlink only if no specific database is requested */ \
if (varlink_is_enforced || (varlink_is_active && db_path == NULL))

#define VARLINK_IS_NOT_RUNNING(r) (r == -ECONNREFUSED || r == -ENOENT)
#define VARLINK_IS_NOT_RUNNING(r) (r == -ECONNREFUSED || r == -ENOENT || r == -ECONNRESET)

#endif

Expand Down

0 comments on commit 1ca5e28

Please sign in to comment.