patch-clients_lcdexec_lcdexec_c 563 B

12345678910111213141516
  1. $OpenBSD: patch-clients_lcdexec_lcdexec_c,v 1.1.1.1 2011/12/01 19:05:11 edd Exp $
  2. Consistently log errors (further, stderr will be closed if daemonised).
  3. --- clients/lcdexec/lcdexec.c.orig Tue Nov 15 17:00:42 2011
  4. +++ clients/lcdexec/lcdexec.c Tue Nov 15 17:01:44 2011
  5. @@ -149,7 +149,7 @@ int main(int argc, char **argv)
  6. fclose(pidf);
  7. pidfile_written = TRUE;
  8. } else {
  9. - fprintf(stderr, "Error creating pidfile %s: %s\n",
  10. + report(RPT_CRIT, "Error creating pidfile %s: %s\n",
  11. pidfile, strerror(errno));
  12. return(EXIT_FAILURE);
  13. }