Changeset 5491 for nanovis/branches/1.2


Ignore:
Timestamp:
May 11, 2015, 3:11:50 PM (5 years ago)
Author:
ldelgass
Message:

More merge updates

Location:
nanovis/branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.2

  • nanovis/branches/1.2/nanovisServer.cpp

    r4937 r5491  
    643643     * also be used to supply information about the server (version, memory
    644644     * size, etc). */
    645     fprintf(g_fOut, "NanoVis %s (build %s)\n", NANOVIS_VERSION_STRING, SVN_VERSION);
    646     fflush(g_fOut);
     645    char mesg[200];
     646    sprintf(mesg, "NanoVis %s (build %s)\n", NANOVIS_VERSION_STRING, SVN_VERSION);
     647    size_t numBytes = strlen(mesg);
     648    ssize_t numWritten = write(g_fdOut, mesg, numBytes);
     649    if ((ssize_t)numBytes != numWritten) {
     650        ERROR("Short write in version string: %s", strerror(errno));
     651    }
    647652
    648653#if defined(USE_NEW_EVENT_LOOP) || defined(USE_THREADS)
Note: See TracChangeset for help on using the changeset viewer.