Changeset 1232
- Timestamp:
- Nov 25, 2008, 9:26:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanoscale/server.c
r1230 r1232 40 40 fd_set service_rfds[MAX_SERVICES]; 41 41 int maxScreens = 1; 42 unsigned long nRequests = 0;42 int nRequests = -1; 43 43 char displayVar[200]; 44 44 … … 238 238 }; 239 239 240 c = getopt_long(argc, argv, "+b:c:l:s:d: S", long_options,240 c = getopt_long(argc, argv, "+b:c:l:s:d:x:", long_options, 241 241 &option_index); 242 242 if (c == -1) … … 244 244 245 245 switch(c) { 246 case ' S': /* Number of screens */246 case 'x': /* Number of screens */ 247 247 maxScreens = strtoul(optarg, 0, 0); 248 248 if ((maxScreens < 1) || (maxScreens > 10)) { … … 582 582 perror("fcntl"); 583 583 } 584 nRequests++; 584 585 585 586 // Fork the new process. Connect i/o to the new socket. … … 611 612 612 613 dispNum = nRequests % maxScreens; 613 nRequests++;614 614 displayVar[11] = dispNum + '0'; 615 615 }
Note: See TracChangeset
for help on using the changeset viewer.