Changeset 1232 for trunk


Ignore:
Timestamp:
Nov 25, 2008 9:26:08 AM (15 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanoscale/server.c

    r1230 r1232  
    4040fd_set service_rfds[MAX_SERVICES];
    4141int maxScreens = 1;
    42 unsigned long nRequests = 0;
     42int nRequests = -1;
    4343char displayVar[200];
    4444
     
    238238        };
    239239
    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,
    241241                        &option_index);
    242242        if (c == -1)
     
    244244
    245245        switch(c) {
    246         case 'S': /* Number of screens */
     246        case 'x': /* Number of screens */
    247247            maxScreens = strtoul(optarg, 0, 0);
    248248            if ((maxScreens < 1) || (maxScreens > 10)) {
     
    582582                    perror("fcntl");
    583583                }
     584                nRequests++;
    584585             
    585586                // Fork the new process.  Connect i/o to the new socket.
     
    611612
    612613                                    dispNum = nRequests % maxScreens;
    613                                     nRequests++;
    614614                                    displayVar[11] = dispNum + '0';
    615615                                }
Note: See TracChangeset for help on using the changeset viewer.