* 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:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user