Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 372896 Details for
Bug 477758
sys-fs/xfsprogs - Various uClibc fixes for xfsprogs-4.3.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xfsprogs-use-sigprocmask.patch
xfsprogs-use-sigprocmask.patch (text/plain), 921 bytes, created by
René Rhéaume
on 2014-03-17 23:40:17 UTC
(
hide
)
Description:
xfsprogs-use-sigprocmask.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2014-03-17 23:40:17 UTC
Size:
921 bytes
patch
obsolete
>--- xfsprogs-3.1.10/copy/xfs_copy.c >+++ xfsprogs-3.1.10-sigprocmask/copy/xfs_copy.c >@@ -72,6 +72,16 @@ xfs_off_t write_log_header(int fd, wbuf > #define LAST 0x10 /* final message we print */ > > void >+signal_maskfunc(int addset, int newset) >+{ >+ sigset_t set; >+ >+ sigemptyset(&set); >+ sigaddset(&set, addset); >+ sigprocmask(newset, &set, NULL); >+} >+ >+void > do_message(int flags, int code, const char *fmt, ...) > { > va_list ap; >@@ -478,9 +488,9 @@ write_wbuf(void) > if (target[i].state != INACTIVE) > pthread_mutex_unlock(&targ[i].wait); /* wake up */ > >- sigrelse(SIGCHLD); >+ signal_maskfunc(SIGCHLD, SIG_UNBLOCK); > pthread_mutex_lock(&mainwait); >- sighold(SIGCHLD); >+ signal_maskfunc(SIGCHLD, SIG_BLOCK); > } > > >@@ -847,7 +857,7 @@ main(int argc, char **argv) > /* set up sigchild signal handler */ > > signal(SIGCHLD, handler); >- sighold(SIGCHLD); >+ signal_maskfunc(SIGCHLD, SIG_BLOCK); > > /* make children */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 477758
:
372888
|
372890
|
372894
|
372896
|
372898
|
374830
|
406570
|
406572
|
421540
|
421542
|
421544
|
421546