Let GTK+ handle SIGPIPE signal itself when printing with lpr

When a SIGPIPE signal is raised during printing with lpr,
application should not be killed by the signal but a standard
error-workflow should be performed (bug #503776).
This commit is contained in:
Marek Kasik 2009-09-16 09:59:56 +02:00
parent d797dcc4dd
commit f6ed1487bd

View File

@ -278,6 +278,8 @@ lpr_write (GIOChannel *source,
{ {
gsize bytes_written; gsize bytes_written;
signal (SIGPIPE, SIG_IGN);
g_io_channel_write_chars (ps->in, g_io_channel_write_chars (ps->in,
buf, buf,
bytes_read, bytes_read,