Ignore:
Timestamp:
Aug 15, 2011, 9:06:20 PM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/nanovis.cpp

    r2377 r2378  
    22042204        return;
    22052205    }
     2206    if (feof(NanoVis::stdin)) {
     2207        DoExit(90);
     2208    }
    22062209
    22072210    NanoVis::update();
     
    22312234    NanoVis::ppm_write("\nnv>image -type image -bytes");
    22322235#endif
    2233     if (feof(NanoVis::stdin)) {
    2234         DoExit(90);
    2235     }
    22362236    TRACE("Leaving xinetd_listen OK\n");
    22372237}
     
    22402240/*----------------------------------------------------*/
    22412241int
    2242 main(int argc, char** argv)
     2242main(int argc, char **argv)
    22432243{
    22442244    const char *path;
    22452245    char *newPath;
    22462246    struct timeval tv;
    2247         int n;
     2247        int n, i;
    22482248    newPath = NULL;
    22492249    path = NULL;
    22502250    NanoVis::stdin = stdin;
    22512251
    2252     openlog("nanovis", LOG_CONS | LOG_PERROR | LOG_PID,  LOG_USER);
    2253     INFO("writing marker to stdout");
     2252    for (i = 0; i < 10; i++) {
    22542253    if ((n = write(1, "NanoVis ", 8)) != 8) {
    22552254       INFO("short write %d", n);
    2256     }
     2255}
     2256    }
     2257    /* openlog("nanovis", LOG_CONS | LOG_PERROR | LOG_PID,  LOG_USER); */
     2258    INFO("writing marker to stdout");
    22572259    gettimeofday(&tv, NULL);
    22582260    stats.start = tv;
Note: See TracChangeset for help on using the changeset viewer.