-
DEBUGMSGXXX and output
--===============1517874919==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_E9B051760A83C541838AEF11EE744F9C12C9DF3BD1TLVMBX01nicec_"
--_000_E9B051760A83C541838AEF11EE744F9C12C9DF3BD1TLVMBX01nicec_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
My snmp agent has the following output messages in it
"printf("1. before fork'\n");" - jest before the call to ret =3D netsnmp_da=
emonize(quit, snmp_stderrlog_status());
and "printf("2. after fork'\n");" after it, The first message are displayed=
and the seconed is not, if I fihured it right it is because at the forking=
step the standard streams are being close, if so where does the message is=
written to?
Many DEBUGMSGXXX depend at (_DBG_IF_), in case that it is set to 1, where w=
ill all the output will be written to?
Best regards,
Isaac Eliassi
Embedded Software , R&D, EIS
NICE Systems. Israel
(T) + 972-9-7753982
(F) + 972-9-7753000
(M) + 972-54-4608201
[email]Isaac.Eliassi@nice.com[/email] <mailto:Isaac.Eliassi@nice.com%20>
www.nice.com<http://www.nice.com/>
-------------------------------
NICE - Insight from Interactions
--_000_E9B051760A83C541838AEF11EE744F9C12C9DF3BD1TLVMBX01nicec_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" xmlns=3D"http://ww=
w.w3.org/TR/REC-html40"
xmlns:ns0=3D"urn:schemas-microsoft-com:office:smarttags">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"country-region"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"place"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>My snmp agent has the following output messages in it<o:=
p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span style=3D'fon=
t-size:10.0pt;
font-family:"Courier New"'>“printf(<font color=3D"#a31515"><span
style=3D'color:#A31515'>"1. before fork'\n"</span></font>);”=
; -
jest before the call to ret =3D netsnmp_daemonize(quit, snmp_stderrlog_stat=
us());<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span style=3D'fon=
t-size:10.0pt;
font-family:"Courier New"'>and “printf(<font color=3D"#a31515"><span
style=3D'color:#A31515'>"2. after fork'\n"</span></font>);”=
after
it, The first message are displayed and the seconed is not, if I fihured it
right it is because at the forking step the standard streams are being clos=
e,
if so where does the message is written to?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span style=3D'fon=
t-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span style=3D'fon=
t-size:10.0pt;
font-family:"Courier New"'>Many </span></font><span class=3Dpreprocessor><f=
ont
color=3D"#333333"><span lang=3DEN style=3D'color:#333333'>DEBUGMSGXXX depen=
d at (_DBG_IF_),
in case that it is set to 1, where will all the output will be written to?<=
/span></font></span><font
size=3D2 face=3DArial><span lang=3DEN style=3D'font-size:10.0pt;font-family=
:Arial'> </span></font><font
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'><o=
:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D2 face=3DVerdana><span style=3D'font-size:10.0pt;font-family:Verdana=
'>Best
regards,</span></font><o:p></o:p></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <o=
:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><b><font
size=3D2 face=3DVerdana><span style=3D'font-size:10.0pt;font-family:Verdana=
;
font-weight:bold'><ns0:PersonName w:insAuthor=3D"Isaace Eliassi"
w:insDate=3D"2008-03-13T12:17:00Z" w:endInsAuthor=3D"Isaace Eliassi"
w:endInsDate=3D"2008-03-13T12:17:00Z">Isaac Eliassi</ns0:PersonName><=
/span></font></b><o:p></o:p></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><b><font
size=3D1 color=3Dgray face=3DVerdana><span style=3D'font-size:7.5pt;font-fa=
mily:Verdana;
color:gray;font-weight:bold'>Embedded Software , R&D, EIS</span></font>=
</b><o:p></o:p></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D1 color=3Dgray face=3DVerdana><span style=3D'font-size:7.5pt;font-fa=
mily:Verdana;
color:gray'>NICE Systems. </span></font><font size=3D1 face=3DVerdana><span
style=3D'font-size:7.5pt;font-family:Verdana'><ns0:place
w:insAuthor=3D"Isaace Eliassi" w:insDate=3D"2008-03-13T12:17:00Z"
w:endInsAuthor=3D"Isaace Eliassi" w:endInsDate=3D"2008-03-13T12:17:00Z"><n=
s0:country-region
w:insAuthor=3D"Isaace Eliassi" w:insDate=3D"2008-03-13T12:17:00Z"
w:endInsAuthor=3D"Isaace Eliassi" w:endInsDate=3D"2008-03-13T12:17:00Z"><=
st1:place
w:st=3D"on"><st1:country-region w:st=3D"on"><font color=3Dgray><span
style=3D'color:gray'>Israel</span></font></st1:country-region></st1:pla=
ce></ns0:country-region></ns0:place></span></font><o:p></o:p></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <o=
:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D1 face=3DVerdana><span style=3D'font-size:7.5pt;font-family:Verdana'=[color=blue]
>(T) +[/color]
972-9-7753982<br>
(F) + 972-9-7753000<br>
(M) + 972-54-4608201<br>
</span></font><a href=3D"mailto:Isaac.Eliassi@nice.com%20"
title=3D"mailto:Eli.Britstein@nice.com
Eli.Britstein@nice.com"><font si=
ze=3D1
face=3DVerdana title=3D"mailto:Eli.Britstein@nice.com"><span
title=3D"mailto:Eli.Britstein@nice.com"><span style=3D'font-size:7.5pt;font=
-family:
Verdana'>Isaac.Eliassi@nice.com </span></span></font></a><o:p></o:p></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><a
href=3D"http://www.nice.com/" title=3D"http://www.nice.com/
[url]http://www.=[/url]
nice.com/"><font
size=3D1 face=3DVerdana title=3D"http://www.nice.com/"><span
title=3D"http://www.nice.com/"><span style=3D'font-size:7.5pt;font-family:V=
erdana'>www.nice.com</span></span></font></a><o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <o=
:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D2 face=3DVerdana><span style=3D'font-size:10.0pt;font-family:Verdana=
'>-------------------------------</span></font><o:p></o:p></p>
<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><font
size=3D2 color=3Dgray face=3DVerdana><span style=3D'font-size:10.0pt;font-f=
amily:Verdana;
color:gray'>NICE - Insight from Interactions</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
--_000_E9B051760A83C541838AEF11EE744F9C12C9DF3BD1TLVMBX01nicec_--
--===============1517874919==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
[url]http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/[/url]
--===============1517874919==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Net-snmp-coders mailing list
[email]Net-snmp-coders@lists.sourceforge.net[/email]
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-coders[/url]
--===============1517874919==--