From 80774990f5bba0c76e7bbcff40ec17199cbe0bc9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 10 Jun 2015 18:37:52 +0000 Subject: s6-rc-init bugfix --- src/s6-rc/s6-rc-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-init.c b/src/s6-rc/s6-rc-init.c index 75f80ef..3ea1a23 100644 --- a/src/s6-rc/s6-rc-init.c +++ b/src/s6-rc/s6-rc-init.c @@ -81,7 +81,7 @@ int main (int argc, char const *const *argv) byte_copy(lfn, llen, live) ; byte_copy(lfn + llen, 6, "/lock") ; - fdlock = open_write(lfn) ; + fdlock = open_trunc(lfn) ; if (fdlock < 0) { cleanup(live) ; -- cgit v1.2.3