IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34122


Ignore:
Timestamp:
Jul 5, 2012, 11:26:36 AM (14 years ago)
Author:
eugene
Message:

add timeout option to glockfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/Ohana/src/tools/src/glockfile.c

    r31850 r34122  
    55  char *filename;
    66  double timeout;
    7   int holdtime, state, type;
     7  int N, holdtime, state, type;
    88  FILE *f;
     9
     10  timeout = 30.0;
     11  if ((N = get_argument (argc, argv, "-timeout"))) {
     12    remove_argument (N, &argc, argv);
     13    timeout = atof (argv[N]);
     14    remove_argument (N, &argc, argv);
     15  }
    916
    1017  if (argc != 4) {
     
    1421
    1522  filename = argv[1];
    16   timeout = 30.0;
    17 
    1823  holdtime = atoi (argv[3]);
    1924
Note: See TracChangeset for help on using the changeset viewer.