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,7 +278,9 @@ lpr_write (GIOChannel *source,
{
gsize bytes_written;
g_io_channel_write_chars (ps->in,
signal (SIGPIPE, SIG_IGN);
g_io_channel_write_chars (ps->in,
buf,
bytes_read,
&bytes_written,