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,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,
|
||||||
|
Loading…
Reference in New Issue
Block a user