Changeset 45cf49f for owl.c


Ignore:
Timestamp:
Feb 23, 2009, 5:42:47 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5283b01
Parents:
1375a6a
Message:
Don't send stderr to admin messages.

We've been getting a lot of complaints about 'uninitialized use of
...' errors and of spew from buggy zsig randomizers. In both cases,
this was an effect of the way we were sending stderr to error
messages, and those error messages went to admin messages because of a
change in 1.0.5.

We still send stderr to the error message log, but text there will no
longer show up anywhere by default.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r52a0f14 r45cf49f  
    717717  char buf[4096];
    718718  int rfd = d->fd;
     719  char *err;
     720
    719721  if (rfd<0) return;
    720722  if (-1 == ioctl(rfd, FIONREAD, (void*)&navail)) {
     
    730732    buf[navail] = '\0';
    731733  }
    732   owl_function_error("[stderr]\n%s", buf);
     734
     735  err = owl_sprintf("[stderr]\n%s", buf);
     736
     737  owl_function_log_err(err);
    733738}
    734739
Note: See TracChangeset for help on using the changeset viewer.