Hello William, here[1] is some context. I implemented a parsing of the reload 
command sent to the master cli, leave it running for a while and got an index 
out of bounds (in my code) this week.

I'm using this lay out to parse the reload output:

//                   1               3               4               6          
     8               8
//   
0.......|.......6.......|.......2.......|.......8.......|.......4.......|.......0.......|.......8
//
//   #<PID>          <type>          <relative PID>  <reloads>       <uptime>   
     <version>
//   1               master          0               2               
0d00h01m28s     2.2.3-0e58a34
//   # workers
//   3               worker          1               0               
0d00h00m00s     2.2.3-0e58a34
//   # old workers
//   2               worker          [was: 1]        1               
0d00h00m28s     2.2.3-0e58a34
//   # programs
//

Apparently I found a line that: starting char isn't '#', have 32 chars or more, 
have less than 48 chars. Is that even possible?

How would you expand the lay out above, so I can improve my parser and my 
tests? Thanks!

~jm

[1] https://www.mail-archive.com/[email protected]/msg38415.html


Reply via email to