@@ -, +, @@ --- src/rc/runscript.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) --- a/src/rc/runscript.c +++ a/src/rc/runscript.c @@ -300,9 +300,15 @@ write_prefix(const char *buffer, size_t bytes, bool *prefixed) /* Spin until we lock the prefix */ for (;;) { lock_fd = open(PREFIX_LOCK, O_WRONLY | O_CREAT, 0664); - if (lock_fd != -1) + if (lock_fd != -1) { if (flock(lock_fd, LOCK_EX) == 0) break; + } + else { + eerror("Error: open(%s) failed:: %s", PREFIX_LOCK, strerror(errno)); + eerror("Please make sure you have enough permissions"); + break; + } close(lock_fd); } --