Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!bu-cs!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: rgb database corruption Message-ID: <8906142323.AA04774@expire.lcs.mit.edu> Date: 14 Jun 89 23:23:52 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 39 Here's an unofficial diff fragment to server/os/4.2bsd/osinit.c that might or might not cause this problem to disappear. You can try it if you are being pestered by this problem. You should probably ignore it if you aren't. Your mileage may vary. *** 60,70 **** { long t; char *ctime(); fclose(stdin); fclose(stdout); sprintf (fname, ADMPATH, display); ! if (!freopen (fname, "a+", stderr)) ! freopen ("/dev/null", "w", stderr); #if defined(macII) || defined(hpux) { static char buf[BUFSIZ]; --- 60,80 ---- { long t; char *ctime(); + FILE *err; fclose(stdin); fclose(stdout); sprintf (fname, ADMPATH, display); ! /* ! * uses stdio to avoid os dependencies here, ! * a real os would use ! * open (fname, O_WRONLY|O_APPEND|O_CREAT, 0666) ! */ ! if (!(err = fopen (fname, "a+"))) ! err = fopen ("/dev/null", "w"); ! if (err && (fileno(err) != 2)) { ! dup2 (fileno (err), 2); ! fclose (err); ! } #if defined(macII) || defined(hpux) { static char buf[BUFSIZ];