History

Send stderr / fd 2 to /sys/log/websocket rather than dumping it down the websocket connection. This probably fails if /sys/log/websocket is not extant and writeable.

dhoskin committed 12 years ago

Commit bf6e44a1 parent b37dde01 file · +4 −0Browse files

Unified · Split

websocket.c+4−0
@@ -361,6 +361,10 @@ void · 360 unmodified lines
361361 threadmain(int argc, char **argv)
362362 {
363363 HConnect *c;
364+ int errfd;
365+
366+ errfd = open("/sys/log/websocket", OWRITE);
367+ dup(errfd, 2);
364368
365369 syslog(1, "websocket", "websocket process %d", getpid());
366370