forked from AuroraMiddleware/gtk
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:
parent
d797dcc4dd
commit
f6ed1487bd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user