<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; Date: Sun, 17 Feb 2013 09:11:53 -0500&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; From: Craig Treleaven &lt;ctreleaven [at] cogeco&gt;&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; Subject: Re: [mythtv-users] mythlogserver fixes/0.26 OS-X?&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt;&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; Doesn't that still leave the issue that, on exit, the parent seems to&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; hang until the child exits (ie 5 minutes, at best)? Eg, launch&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; mythtv-setup, which launches mythlogserver (no --daemon flag), do&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; whatever, exit mythtv-setup. For me, mythtv-setup waits until&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; mythlogserver times out (or I kill it) before returning control to&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; the terminal. I believe if I were to launch another Myth program,&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; the shutdown timer on mythlogserver would be cancelled and the&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; original parent process would continue to be frozen.&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt;&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; On OS X, is the easiest workaround to make the shutdown timer&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; effectively zero? (Looks to me like there are two places that need&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; to be patched in libmythbase/loggingserver.cpp.)&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt;&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; All the testing I've done has been with mythtv-setup as I don't have&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; a complete 0.26 test system, yet.&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt;&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); ">&gt; Craig&nbsp;</span><br style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><div><span style="color: rgb(102, 0, 102); font-family: Verdana, Arial, Helvetica; font-size: small; background-color: rgb(255, 255, 255); "><br></span></div><div><font face="Verdana, Arial, Helvetica" size="2">I found a few interesting things about this problem. I found that if you append a &amp; to the args in the system call, mythlogserver launches properly when mythfrontend is started, logs appear where they should, and mythfrontend exits immediately without hanging. This is in combination with the no daemon patch.&nbsp;</font></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div><div><font face="Verdana, Arial, Helvetica" size="2">I also found that when mythlogserver is launched on demand by launchd, as mentioned previously, logs aren't being written and mythlogserver quits after 5 minutes even if the frontend is still running. However, if you quit mythfrontend and restart it while mythlogserver is still running, logs will work normally at that point. What I also did was to disable the launching of mythlogserver from mythfrontend (since launchd takes care of it) in order to prevent the two mythlogserver processes (one of which quits automatically). So is this an issue with zeromq, a race condition perhaps?</font></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div><div><font face="Verdana, Arial, Helvetica" size="2">Yves</font></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div><div><br></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div><div><font face="Verdana, Arial, Helvetica" size="2"><br></font></div></body></html>