diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-08-25 14:07:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-08-25 14:07:43 +0000 |
commit | fc91cc6cd1384a315a1f33bc83e6d6e9926fc791 (patch) | |
tree | 91653dabbc1fec12fc77ece84364204c93af027e /src | |
parent | 81e066f42ac739a775f3220d99ac65a34d252398 (diff) | |
download | s6-rc-fc91cc6cd1384a315a1f33bc83e6d6e9926fc791.tar.xz |
Fix compute_timeout bug in s6-rc.c (thanks Tommi Virtanen)
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-rc/s6-rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c index ca668f2..698b52e 100644 --- a/src/s6-rc/s6-rc.c +++ b/src/s6-rc/s6-rc.c @@ -141,7 +141,7 @@ static pid_t start_longrun (unsigned int i, int h) } } servicefn[livelen + 9 + svdlen] = 0 ; - fmt[uint32_fmt(fmt, compute_timeout(i, h))] = 0 ; + fmt[uint32_fmt(fmt, compute_timeout(i, !!h))] = 0 ; vfmt[uint_fmt(vfmt, verbosity)] = 0 ; if (dryrun[0]) { |