diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-06-30 01:07:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-30 23:42:15 +0100 |
commit | c66a1d17f9a7a1170e95e7cff5856ee6c6f695c2 (patch) | |
tree | 493b6f588d61ecbc5d38879e66414485e13262ab /meta/recipes-core/uclibc/uclibc-git | |
parent | 8781c843cf3e0913a8fdd2ff91935f051be01dd9 (diff) | |
download | poky-c66a1d17f9a7a1170e95e7cff5856ee6c6f695c2.tar.gz |
uclibc: Fix bug exposed by udev 168+ for mips architecture
newer udev uses sgnalfd + epoll and this exposed a bug
in uclibc for mips where SFD_NONBLOCK should be defined
with 0200 for mips but was using 04000. This would cause
random segfaults in udev during boot process
Tested on qemumips/angstrom console-image since angstrom
uses udev 171. It worked well when we did not use meta-oe
layer because udev in oe-core will then be used which is
at version 164.
(From OE-Core rev: a318b3c319ab34f661b3f41855374adba5b10394)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/0001-mips-signalfd.h-SFD_NONBLOCK-for-mips-is-0200-unlike.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-mips-signalfd.h-SFD_NONBLOCK-for-mips-is-0200-unlike.patch b/meta/recipes-core/uclibc/uclibc-git/0001-mips-signalfd.h-SFD_NONBLOCK-for-mips-is-0200-unlike.patch new file mode 100644 index 0000000000..6892ceb922 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/0001-mips-signalfd.h-SFD_NONBLOCK-for-mips-is-0200-unlike.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From ecc7d34cbbaf83aae87b091555650ed33e27ed2e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 30 Jun 2011 00:32:11 -0700 | ||
4 | Subject: [PATCH] mips/signalfd.h: SFD_NONBLOCK for mips is 0200 unlike 04000 commonly | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | include/sys/signalfd.h | 9 +++++++++ | ||
9 | 1 files changed, 9 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/include/sys/signalfd.h b/include/sys/signalfd.h | ||
12 | index 8cee17c..f1cb63a 100644 | ||
13 | --- a/include/sys/signalfd.h | ||
14 | +++ b/include/sys/signalfd.h | ||
15 | @@ -64,6 +64,15 @@ enum | ||
16 | # define SFD_NONBLOCK SFD_NONBLOCK | ||
17 | }; | ||
18 | |||
19 | +#elif defined __mips__ | ||
20 | +enum | ||
21 | + { | ||
22 | + SFD_CLOEXEC = 02000000, | ||
23 | +# define SFD_CLOEXEC SFD_CLOEXEC | ||
24 | + SFD_NONBLOCK = 0200 | ||
25 | +# define SFD_NONBLOCK SFD_NONBLOCK | ||
26 | + }; | ||
27 | + | ||
28 | #else | ||
29 | enum | ||
30 | { | ||
31 | -- | ||
32 | 1.7.0.4 | ||
33 | |||