/* -*-c-*-
*
- * $Id: pixie.c,v 1.9 2001/02/03 16:06:44 mdw Exp $
+ * $Id: pixie.c,v 1.10 2001/02/21 20:03:54 mdw Exp $
*
* Passphrase pixie for Catacomb
*
/*----- Revision history --------------------------------------------------*
*
* $Log: pixie.c,v $
+ * Revision 1.10 2001/02/21 20:03:54 mdw
+ * Handle select errors (by bombing out). Cosmetic tweak.
+ *
* Revision 1.9 2001/02/03 16:06:44 mdw
* Don't set a handler for @SIGINT@ if it's ignored at startup. Add some
* error handling for the @select@ loop.
selbuf_destroy(&c_client);
}
exit(0);
- } else
- puts(s);
+ }
+ puts(s);
}
/* --- @pix_client@ --- *
/* --- And repeat --- */
- for (;;)
- sel_select(&sel);
+ for (;;) {
+ if (sel_select(&sel))
+ die(EXIT_FAILURE, "select error: %s", strerror(errno));
+ }
}
/*----- Main code ---------------------------------------------------------*/