<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Windows Mail 17.5.9600.20689">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style>
</head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;">
<div>Salut,</div>
<div><br>
</div>
<div>Am si eu o intrebare daca puteti sa ma lamuriti va rog :</div>
<div><br>
</div>
<div>Pe Linux intr-un process copil aloc memorie inainte de a executa execv().</div>
<div>Dupa ce am executat execv() toata memoria procesului copil se suprascrie</div>
<div>(asta inclusive heap-ul in urma alocarilor cu malloc, calloc..)</div>
<blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;" dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: "Color Emoji", "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 16px;">
1.Apelul free() dupa execv() nu mai are sens deoarece s-a suprascris intreaga zona
</div>
</blockquote>
<div>de memorie nu?</div>
<blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;" dir="ltr">
<div>2.File descriptorii deschisi inainte de execv() se pierd, dar structurile aferente procesului
</div>
</blockquote>
<div>care fac legatura cu inode-urile raman?</div>
<blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;" dir="ltr">
<div>3.Pe Windows trebuie sa dealocam memoria pentru parametrii in linie de comanda trimisi catre CreateProcess() din procesul parinte pentru a evita memory leak-uri ?</div>
<div><br>
</div>
</blockquote>
<div dir="ltr">Va multumesc, </div>
<div dir="ltr">Astept raspuns Sebastian <br>
</div>
<div data-signatureblock="true"><br>
</div>
<div data-signatureblock="true">Sent from Windows Mail</div>
<div data-signatureblock="true"><br>
</div>
</div>
</body>
</html>