httpd suicides occasionaly if simple log files 8c found it - p used and not set. Notes: Mon Mar 20 08:45:17 EST 2006 rsc Thanks. I fixed the bug by setting p. Your fix - testing p - doesn't work because p hasn't been set. It might be zero but it might be anything else. Reference: /n/sources/patch/applied/http-bug Date: Mon Mar 20 01:47:06 CET 2006 Signed-off-by: steve@quintile.net Reviewed-by: rsc --- /sys/src/cmd/ip/httpd/log.c Mon Mar 20 01:45:24 2006 +++ /sys/src/cmd/ip/httpd/log.c Mon Mar 20 01:45:22 2006 @@ -87,7 +87,10 @@ objectsize = va_arg(arg, vlong); /* wrote in sendfd.c */ va_end(arg); } - bufp = seprint(buf, bufe, "%s - -", p->remotesys); + if (p) + bufp = seprint(buf, bufe, "%s - -", p->remotesys); + else + bufp = seprint(buf, bufe, "- - -"); bufp = seprint(bufp, bufe, " [%.2d/%s/%d:%.2d:%.2d:%.2d +0000]", tm->mday, monname[tm->mon], tm->year+1900, tm->hour, tm->min, tm->sec); if(c->req.uri == nil || c->req.uri[0] == 0){ bufp = seprint(bufp, bufe, " \"%.*s\"",