IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

cleaned errors with mana / kii comms

File:
1 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");
Note: See TracChangeset for help on using the changeset viewer.