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
361threadmain(int argc, char **argv)361threadmain(int argc, char **argv)
362{362{
363 HConnect *c;363 HConnect *c;
364 int errfd;
365
366 errfd = open("/sys/log/websocket", OWRITE);
367 dup(errfd, 2);
364 368
365 syslog(1, "websocket", "websocket process %d", getpid());369 syslog(1, "websocket", "websocket process %d", getpid());
366 370