Changeset 2378 for trunk/packages/vizservers
- Timestamp:
- Aug 15, 2011, 9:06:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/nanovis.cpp
r2377 r2378 2204 2204 return; 2205 2205 } 2206 if (feof(NanoVis::stdin)) { 2207 DoExit(90); 2208 } 2206 2209 2207 2210 NanoVis::update(); … … 2231 2234 NanoVis::ppm_write("\nnv>image -type image -bytes"); 2232 2235 #endif 2233 if (feof(NanoVis::stdin)) {2234 DoExit(90);2235 }2236 2236 TRACE("Leaving xinetd_listen OK\n"); 2237 2237 } … … 2240 2240 /*----------------------------------------------------*/ 2241 2241 int 2242 main(int argc, char **argv)2242 main(int argc, char **argv) 2243 2243 { 2244 2244 const char *path; 2245 2245 char *newPath; 2246 2246 struct timeval tv; 2247 int n ;2247 int n, i; 2248 2248 newPath = NULL; 2249 2249 path = NULL; 2250 2250 NanoVis::stdin = stdin; 2251 2251 2252 openlog("nanovis", LOG_CONS | LOG_PERROR | LOG_PID, LOG_USER); 2253 INFO("writing marker to stdout"); 2252 for (i = 0; i < 10; i++) { 2254 2253 if ((n = write(1, "NanoVis ", 8)) != 8) { 2255 2254 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"); 2257 2259 gettimeofday(&tv, NULL); 2258 2260 stats.start = tv;
Note: See TracChangeset
for help on using the changeset viewer.