diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-06-10 18:37:52 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-06-10 18:37:52 +0000 |
commit | 80774990f5bba0c76e7bbcff40ec17199cbe0bc9 (patch) | |
tree | 83bbcae946de987bef468912c444d68a592a2fb9 /src | |
parent | abc9749d1a7a441a0a602166927c0fe50fd84fb3 (diff) | |
download | s6-rc-80774990f5bba0c76e7bbcff40ec17199cbe0bc9.tar.xz |
s6-rc-init bugfix
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-rc/s6-rc-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) ; |