Changeset 5492


Ignore:
Timestamp:
May 11, 2015, 3:12:52 PM (4 years ago)
Author:
ldelgass
Message:

Go back to writing version with buffered output: the threaded server uses
buffered output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/nanovisServer.cpp

    r5425 r5492  
    533533     * also be used to supply information about the server (version, memory
    534534     * size, etc). */
    535     char mesg[200];
    536 
    537     sprintf(mesg, "NanoVis %s (build %s)\n", NANOVIS_VERSION_STRING, SVN_VERSION);
    538     size_t numBytes;
    539     ssize_t numWritten;
    540 
    541     numBytes = strlen(mesg);
    542     numWritten = write(g_fdOut, mesg, numBytes);
    543     if ((ssize_t)numBytes != numWritten) {
    544         ERROR("Short write in version string: %s", strerror(errno));
    545     }
     535    fprintf(g_fOut, "NanoVis %s (build %s)\n", NANOVIS_VERSION_STRING, SVN_VERSION);
     536    fflush(g_fOut);
    546537
    547538    g_inBufPtr = new ReadBuffer(g_fdIn, 1<<12);
Note: See TracChangeset for help on using the changeset viewer.