IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2004, 5:18:05 PM (22 years ago)
Author:
eugene
Message:

fixed db open/close operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/imreg/rconnect.c

    r76 r2823  
    6363  /* try to get evidence connection is alive - wait upto a few seconds */
    6464  status = -1;
    65   for (i = 0; (i < 100) && (status == -1); i++) {
     65  for (i = 0; (i < 300) && (status == -1); i++) {
    6666    fcntl (*rsock, F_SETFL, O_NONBLOCK);
    6767    status = SockScan ("PTOLEMY STARTED", &fifo, *rsock);
     68    if (!(i % 30)) fprintf (stderr, ".");
    6869    if (status == 0) {
    6970      fprintf (stderr, "socket closed unexpectedly\n");
     
    7374    }
    7475  }
    75   if (i == 100) {
     76  if (i == -1) {
    7677    fprintf (stderr, "timeout while connecting\n");
    7778    close (*wsock);
Note: See TracChangeset for help on using the changeset viewer.