You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dirk vanGulik <Di...@jrc.it> on 1996/08/13 19:52:16 UTC
Where does the write back go ?
Just working on that snmp stuff again, with regard to the
various updates of the scoreboard:
Often a copy is made using:
memcpy(&new_score_rec,&scoreboard_image[child_num],sizeof new_score_rec);
and some time later a write...
#if defined(HAVE_MMAP) || defined(HAVE_SHMGET)
memcpy(&scoreboard_image[child_num], &new_score_rec, sizeof(short_score));
#else
lseek (scoreboard_fd, (long)child_num * sizeof(short_score), 0);
force_write (scoreboard_fd, (char*)&new_score_rec, sizeof(short_score));
#endif
However if you aint have MMAP or SHMGET.. then IMHO the actual scoreboard_image[I]
never gets the new_score_rec data back; and hence does not have the values (and
counters) ?
Am I correct here ? (Before sending off a flurry of patches, let me check some other
thigs toooo.)
Dw & Harrie
Re: Where does the write back go ?
Posted by ra...@bellglobal.com.
Completely unrelated to your question, but since you are working on
SNMP stuff for Apache, have you looked at this URL?
http://http-mib.onramp.net/
-Rasmus