trailing null char in output of svstat when "want down"
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 ^_at_
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
Received on Thu Apr 13 2017 - 10:51:17 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:19 UTC