~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/errmsg_stderr/errmsg_stderr.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-07 17:20:59 UTC
  • mfrom: (2148 staging)
  • mto: (2148.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 2149.
  • Revision ID: andrew@linuxjedi.co.uk-20110207172059-dyeahrgzrlincoe3
Merge with trunk

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
  }