supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Bug for sv status in lsb mode
@ 2009-07-13  8:00 Mathieu Poumeyrol
  2009-07-13 13:42 ` Charlie Brady
  0 siblings, 1 reply; 21+ messages in thread
From: Mathieu Poumeyrol @ 2009-07-13  8:00 UTC (permalink / raw)
  To: supervision

Hello there,

I have tracked down a bug in the lsb-compatible code for sv status:   
sv return 0 even if the service is down.

The variable r in the "status" function in the sv.c file is global,  
and altered in the curse of the function, making the last test  
useless. From what I have seen, saving the status in a local variable  
instead of using the global r solve the issue, but I don't know if  
this fix is without side-effect.

I hope somebody can fix this in a proper way and push the changes.

Thanks !


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2010-06-03 14:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-13  8:00 Bug for sv status in lsb mode Mathieu Poumeyrol
2009-07-13 13:42 ` Charlie Brady
2009-07-13 14:13   ` Mathieu Poumeyrol
2009-07-13 14:18     ` Mathieu Poumeyrol
2009-07-13 14:20       ` Charlie Brady
2009-07-17  9:08       ` Gerrit Pape
2009-07-17 10:02         ` Mathieu Poumeyrol
2009-07-17 11:08           ` Gerrit Pape
2009-07-19 14:52         ` sv sometimes won't issue down request Earl Chew
2009-07-19 17:14           ` svwaitup races with sv Earl Chew
2009-07-24 20:31             ` Charlie Brady
2009-07-24 20:35               ` Earl Chew
2009-07-24 20:18           ` sv sometimes won't issue down request (specifically, after 'sv once xxx') Charlie Brady
2009-07-24 20:38             ` Earl Chew
2009-07-24 21:01               ` Charlie Brady
2009-07-25 19:49                 ` Joan Picanyol i Puig
2009-07-27  9:09           ` sv sometimes won't issue down request Gerrit Pape
2009-07-27 17:39             ` Earl Chew
2010-05-31 19:54         ` Bug for sv status in lsb mode Erik Wright
2010-06-03  9:04           ` Gerrit Pape
2010-06-03 14:12             ` Erik Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).