forked from 12to11/12to11
Fix thinko in X clipboard setup code
* xdata.c (XLInitXData): Ignore, not block, SIGPIPE.
This commit is contained in:
parent
a0d2d34f0f
commit
ef7f5537f9
1 changed files with 6 additions and 6 deletions
12
xdata.c
12
xdata.c
|
@ -2265,7 +2265,7 @@ XLNoteLocalPrimary (Seat *seat, PDataSource *source)
|
||||||
void
|
void
|
||||||
XLInitXData (void)
|
XLInitXData (void)
|
||||||
{
|
{
|
||||||
sigset_t set;
|
struct sigaction act;
|
||||||
int rc, fixes_error_base, major, minor;
|
int rc, fixes_error_base, major, minor;
|
||||||
|
|
||||||
rc = XFixesQueryExtension (compositor.display,
|
rc = XFixesQueryExtension (compositor.display,
|
||||||
|
@ -2309,13 +2309,13 @@ XLInitXData (void)
|
||||||
|
|
||||||
/* Ignore SIGPIPE, since we could be writing to a pipe whose reading
|
/* Ignore SIGPIPE, since we could be writing to a pipe whose reading
|
||||||
end was closed by the client. */
|
end was closed by the client. */
|
||||||
sigemptyset (&set);
|
memset (&act, 0, sizeof act);
|
||||||
sigaddset (&set, SIGPIPE);
|
act.sa_handler = SIG_IGN;
|
||||||
|
|
||||||
if (pthread_sigmask (SIG_BLOCK, &set, NULL))
|
if (sigaction (SIGPIPE, &act, NULL))
|
||||||
{
|
{
|
||||||
perror ("pthread_sigmask");
|
perror ("sigaction");
|
||||||
exit (1);
|
abort ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue