diff options
author | jirka-h <hladky.jiri@gmail.com> | 2020-10-11 02:23:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 02:23:56 +0200 |
commit | 9c0f06327e075394c77286b7a927e60fd01c0b3b (patch) | |
tree | bf558226377ec554cf98a335a151af31537552ec | |
parent | Fixed Wsign-compare compiler warnings (diff) | |
parent | don't fail completely if we can't set write wakeup watermark (diff) | |
download | haveged-9c0f06327e075394c77286b7a927e60fd01c0b3b.tar.xz haveged-9c0f06327e075394c77286b7a927e60fd01c0b3b.zip |
Merge pull request #48 from ddstreet/write-wakeup-warn-only
don't fail completely if we can't set write wakeup watermark
-rw-r--r-- | src/haveged.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/haveged.c b/src/haveged.c index 014b4ba..733d0da 100644 --- a/src/haveged.c +++ b/src/haveged.c @@ -694,6 +694,9 @@ static void set_watermark( /* RETURN: nothing */ fprintf(wm_fh, "%d\n", level); fclose(wm_fh); } + else if (errno == EACCES) + fprintf(stderr, "No access to %s, can't set watermark (maybe running in a container?)\n", + params->watermark); else error_exit("Fail:set_watermark()!"); } #endif |