Rev 13011 | Rev 15414 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13011 | Rev 13359 | ||
---|---|---|---|
Line 123... | Line 123... | ||
123 | /* Internal error: panic and forget about requester. */ |
123 | /* Internal error: panic and forget about requester. */ |
124 | void internal_error(char msg[]) |
124 | void internal_error(char msg[]) |
125 | { |
125 | { |
126 | if(error_status<2) { |
126 | if(error_status<2) { |
127 | nph_header(500); |
127 | nph_header(500); |
128 | printf("Cache-Control: no- |
128 | printf("Cache-Control: no-cache, no-store, must-revalidate\r\n\ |
129 | Content-type: text/plain\r\n\r\n\r\n\ |
129 | Content-type: text/plain\r\n\r\n\r\n\ |
130 | WIMS panick! %s\n%s\n",msg,strerror(errno)); |
130 | WIMS panick! %s\n%s\n",msg,strerror(errno)); |
131 | error_status=2; internal_warn(msg); |
131 | error_status=2; internal_warn(msg); |
132 | } |
132 | } |
133 | delete_pid(); exit(1); |
133 | delete_pid(); exit(1); |