Re: Strange crash (BUG?) !!!

Albert Dorofeev (Albert@mail.dma.be)
Sun, 09 Aug 1998 15:33:45 +0200


David Taylor wrote:
> 
> In ~/.AfterStep-errors I found 408,350 lines containing "heyho!" ... now
> what the $%@# is that?!!!  Then the next 10 lines were "/usr/bin/play:

Well, I can tell you who to kill. The messsage
"heyho!" is printed by wmppp applet when it
encounters an error:

void get_ppp_stats(struct ppp_stats *cur) {

        struct ifpppstatsreq    req;

        memset(&req, 0, sizeof(req));

        req.stats_ptr = (caddr_t) &req.stats;

        sprintf(req.ifr__name, "ppp%d", PPP_UNIT);

        if (ioctl(ppp_h, SIOCGPPPSTATS, &req) < 0) {
                fprintf(stderr, "heyho!\n");
        }

        *cur = req.stats;
}               

I am sure the error message could be made just
a little bit more descriptive ... 

Albert

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.caldera.com/linuxcenter/forums/afterstep.html