regarding handling of " EINTR" in "receive()" function in "snmpd.c"

sanjaykumar <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

I have a doubt regarding handling of " EINTR" in
"receive()" function in "snmpd.c"

Why does it required to handle the this Interrupt ?

what will be impact if I will not remove i.e.
stop Handling it ?

Does any Basic functionalities get effected ?

The way I handling ?

switch (count) {

case 0:

snmp_timeout();

break;

case -1:

DEBUGMSGTL(("snmpd/select", " errno = %d\n", errno));

if (errno == EINTR) {

/*

* likely that we got a signal. Check our special
signal

* flags before retrying select.

*/

if (netsnmp_running && !reconfig) {

goto reselect;

}

continue; /*If I will COMMENT THIS statement what will
be effect on functionalities*/

} else {

snmp_log_perror("select");

}

return -1;

Rgds,

Sanjay

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.