Good morning -

I note:

/ssh:syk-rpb0:/home/bhyde/w/service/ #$ s6-svstat restore-www | od -c
0000000 u p ( p i d 7 9 6 8 1 ) 7
0000020 3 3 s e c o n d s , n o r m
0000040 a l l y d o w n , w a n t
0000060 d o w n \0 \n
0000066

I.e. there is a trailing null char at the end of the line, right after
the words “want down”.

My emacs shell kindly renders that as ^@

So in src/supervision/s6-svstat.c…

-   buffer_putnoflush(buffer_1small, ", want down", 12)
+   buffer_putnoflush(buffer_1small, ", want down", 11)

Thanks for the awesome bits! - ben

Reply via email to