* robustness/cleanup fixes:

- mu-util.c: don't raise errors when fputs failes (this would spam us when a
    pipe broke)
  - mu-cmd-server.c: handle SIGPIPE, ignore empty command lines
This commit is contained in:
djcb
2012-06-26 13:11:50 +03:00
parent 8b6a65114e
commit e5448adbb8
2 changed files with 15 additions and 12 deletions

View File

@ -431,12 +431,7 @@ mu_util_fputs_encoded (const char *str, FILE *stream)
g_free (conv);
}
if (rv == EOF) { /* note, apparently, does not set errno */
g_warning ("%s: fputs failed", __FUNCTION__);
return FALSE;
}
return TRUE;
return (rv == EOF) ? FALSE : TRUE;
}