~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/errmsg_stderr/errmsg_stderr.cc

  • Committer: Brian Aker
  • Date: 2011-02-05 20:07:57 UTC
  • mto: (2147.1.1 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2148.
  • Revision ID: brian@tangent.org-20110205200757-nulqm7u4ggnme70k
Error log messages from Inno, most, not all are sent to the correct error
log.
We now remove the error log plugins last.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    /* a single write has a OS level thread lock
48
48
       so there is no need to have mutexes guarding this write,
49
49
    */
50
 
    wrv= write(2, msgbuf, prv);
51
 
    if ((wrv < 0) || (wrv != prv)) return true;
 
50
    wrv= write(fileno(stderr), msgbuf, prv);
 
51
    fputc('\n', stderr);
 
52
    if ((wrv < 0) || (wrv != prv))
 
53
      return true;
52
54
 
53
55
    return false;
54
56
  }