IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2906


Ignore:
Timestamp:
Jan 5, 2005, 9:47:26 AM (22 years ago)
Author:
eugene
Message:

cleaned errors with mana / kii comms

Location:
trunk/Ohana/src/kii
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kii/event/CheckPipe.c

    r2888 r2906  
    77int CheckPipe (Graphic *graphic, Layout *layout) {
    88
    9   int status;
     9  int status, c;
    1010  char buffer[20];
    1111
     12  /* attempt to read 4 bytes from stdin */
    1213  bzero (buffer, 20);
    13 
    14   /* attempt to read 4 bytes from stdin */
    1514  status = read (layout[0].Ximage, buffer, 4);
     15  buffer[4] = 0;
    1616
    1717  switch (status) {
     
    4242      return (2);
    4343    }
    44     fprintf (stderr, "unknown signal %s\n", buffer);
     44    fprintf (stderr, "unknown signal (AC) %s\n", buffer);
    4545    return (TRUE);
    4646  }
    4747
     48  /* If Active Cursor mode is off, we can receive other signal */
    4849  if (!strcmp (buffer, "QUIT")) {
    4950    if (DEBUG) fprintf (stderr, "Goodbye!\n");
  • trunk/Ohana/src/kii/event/Reconfig.c

    r2466 r2906  
    1111  graphic[0].dy = MAX(event[0].xconfigure.height, MIN_HEIGHT);
    1212
     13  XClearWindow (graphic[0].display, graphic[0].window);
    1314  PositionPictures (layout, graphic);
    1415  CreateColorbar (layout, graphic);
  • trunk/Ohana/src/kii/overlay/EraseOverlay.c

    r2466 r2906  
    66  int i, status, N;
    77
     8  fcntl (layout[0].Ximage, F_SETFL, !O_NONBLOCK); 
    89  status = read (layout[0].Ximage, buffer, 16);
    910  buffer[16] = 0;
     
    2324  }
    2425
     26  fcntl (layout[0].Ximage, F_SETFL, O_NONBLOCK); 
    2527  Refresh (graphic, layout, 0);
    2628  return (TRUE);
  • trunk/Ohana/src/kii/picture/Center.c

    r2466 r2906  
    77  double X, Y;
    88
     9  fcntl (layout[0].Ximage, F_SETFL, !O_NONBLOCK); 
    910  status = read (layout[0].Ximage, buffer, 16);
    1011  buffer[16] = 0;
     
    2324  Refresh (graphic, layout, 0);
    2425
     26  fcntl (layout[0].Ximage, F_SETFL, O_NONBLOCK); 
    2527  XFlush (graphic[0].display);
    2628  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.