Hi Hideo-san, On Fri, Dec 11, 2009 at 09:50:13AM +0900, renayama19661...@ybb.ne.jp wrote: > Hi Dejan, > > Sorry.... > Meanings of your comment cannot understand it well. > Please teach contents of the comment a little more intelligibly.
Please ignore what I wrote. external_run_cmd uses popen() and the plugins use stdout for informational messages too. Not the best way, but we can live with that. I get the meaning of your patch, but still don't understand the part I quoted in the first reply. It would also be good to rename "isbufferd" to say "data_call". That way we state that what is expected from the plugin is data on stdin (getinfo, get_confignames, hostlist). With the other calls (status and reset_req) we expect informational or error messages. Cheers, Dejan > Best Regards, > Hideo Yamauchi. > > --- Dejan Muhamedagic <deja...@fastmail.fm> wrote: > > > Hi Hideo-san, > > > > On Thu, Dec 10, 2009 at 05:34:56PM +0900, renayama19661...@ybb.ne.jp wrote: > > > Hi, > > > > > > We are troubled with log in reset of stonith. > > > > > > Log is not output till practice is completed in the reset movement of > > > stonith. > > > > I see your point. > > > > > The stonith module which is extenal which we made gives log during reset > > > movement and chases > > movement. > > > For us, the chase of the reset movement is very useful. > > > > > > We think that the whole reset movement should be over the log at any time. > > > > The stdout/stderr should be split with stderr going immediately > > to the log and the content of stdout returned to the caller. Any > > chance to implement it that way. > > > > > I created a patch for external.c. > > > Please teach it if there is the revision method that, besides, is good. > > > > After taking a quick look, I find this part a bit strange: > > > > + if (fgets(buff, BUFF_LEN, file)) { > > + LOG(PIL_INFO, "%s: '%s' output: %s", > > __FUNCTION__, cmd, buff); > > + if (Debug && data) { > > + LOG(PIL_DEBUG, "%s: '%s' output: %s", > > __FUNCTION__, cmd, buff); > > + } > > + tosleep = FALSE; > > + } > > > > Cheers, > > > > Dejan > > > > > Best Regards, > > > Hideo Yamauchi. > > > > > > > _______________________________________________________ > > > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > > > Home Page: http://linux-ha.org/ > > > > _______________________________________________________ > > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > > Home Page: http://linux-ha.org/ > > > > _______________________________________________________ > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/