<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial","sans-serif";
mso-fareast-language:EN-US;}
h1
{mso-style-priority:9;
mso-style-link:"Überschrift 1 Zchn";
margin-top:24.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Arial","sans-serif";
color:black;
mso-fareast-language:EN-US;}
h2
{mso-style-priority:9;
mso-style-link:"Überschrift 2 Zchn";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Arial","sans-serif";
color:black;
mso-fareast-language:EN-US;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
margin-top:0cm;
margin-right:0cm;
margin-bottom:15.0pt;
margin-left:0cm;
mso-add-space:auto;
font-size:26.0pt;
font-family:"Arial","sans-serif";
color:#4A4A48;
letter-spacing:.25pt;
mso-fareast-language:EN-US;}
p.MsoTitleCxSpFirst, li.MsoTitleCxSpFirst, div.MsoTitleCxSpFirst
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
mso-style-type:export-only;
margin:0cm;
margin-bottom:.0001pt;
mso-add-space:auto;
font-size:26.0pt;
font-family:"Arial","sans-serif";
color:#4A4A48;
letter-spacing:.25pt;
mso-fareast-language:EN-US;}
p.MsoTitleCxSpMiddle, li.MsoTitleCxSpMiddle, div.MsoTitleCxSpMiddle
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
mso-style-type:export-only;
margin:0cm;
margin-bottom:.0001pt;
mso-add-space:auto;
font-size:26.0pt;
font-family:"Arial","sans-serif";
color:#4A4A48;
letter-spacing:.25pt;
mso-fareast-language:EN-US;}
p.MsoTitleCxSpLast, li.MsoTitleCxSpLast, div.MsoTitleCxSpLast
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:15.0pt;
margin-left:0cm;
mso-add-space:auto;
font-size:26.0pt;
font-family:"Arial","sans-serif";
color:#4A4A48;
letter-spacing:.25pt;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#003399;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#785600;
text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
{mso-style-priority:39;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial","sans-serif";
mso-fareast-language:EN-US;}
span.MsoIntenseEmphasis
{mso-style-priority:21;
color:#CE1126;
font-weight:bold;
font-style:italic;}
span.berschrift1Zchn
{mso-style-name:"Überschrift 1 Zchn";
mso-style-priority:9;
mso-style-link:"Überschrift 1";
font-family:"Arial","sans-serif";
color:black;
font-weight:bold;}
span.berschrift2Zchn
{mso-style-name:"Überschrift 2 Zchn";
mso-style-priority:9;
mso-style-link:"Überschrift 2";
font-family:"Arial","sans-serif";
color:black;
font-weight:bold;}
span.TitelZchn
{mso-style-name:"Titel Zchn";
mso-style-priority:10;
mso-style-link:Titel;
font-family:"Arial","sans-serif";
color:#4A4A48;
letter-spacing:.25pt;}
span.E-MailFormatvorlage23
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage24
{mso-style-type:personal-reply;
font-family:"Arial","sans-serif";
color:#646460;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#003399" vlink="#785600">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:black">I sent yesterday this email to the mailing list of libq 'quarterback-devel@lists.fedorahosted.org'.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">But there is nearly no activity since august.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">I use the current trunk of libqb.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In qb_ipcc_us_sock_close nd qb_ipcs_us_withdraw of lib/ipc_setup.c sockets are closed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there a reason why the files bound to the sockets are not deleted with unlink?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is unlinking not necessary with Linux?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found thousands of files in statedir=/var/corosync/run<span style="color:black"> after a while.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried this and it seems to work without errors.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#646460">e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">void<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">qb_ipcc_us_sock_close(int32_t sock)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> #ifdef QB_SOLARIS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> struct sockaddr_un un_addr;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> socklen_t un_addr_len = sizeof(struct sockaddr_un);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> #endif<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> shutdown(sock, SHUT_RDWR);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> #ifdef QB_SOLARIS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> if (getsockname(sock, (struct sockaddr *)&un_addr, &un_addr_len) == 0) {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> if(strstr(un_addr.sun_path,"-") != NULL) {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> qb_util_log(LOG_DEBUG, "un_addr.sun_path=%s", un_addr.sun_path);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> unlink(un_addr.sun_path);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> } else {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> qb_util_log(LOG_DEBUG, "getsockname returned errno=%d", errno);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span>}<o:p></o:p></p>
<p class="MsoNormal"> #endif<o:p></o:p></p>
<p class="MsoNormal"> close(sock);<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Andreas<o:p></o:p></p>
</div>
</body>
</html>