patch-2.4.20 linux-2.4.20/include/asm-s390x/elf.h
Next file: linux-2.4.20/include/asm-s390x/irq.h
Previous file: linux-2.4.20/include/asm-s390/timex.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-s390x/elf.h
- Orig date:
Wed Apr 11 19:02:29 2001
diff -urN linux-2.4.19/include/asm-s390x/elf.h linux-2.4.20/include/asm-s390x/elf.h
@@ -77,7 +77,13 @@
#define ELF_PLATFORM (NULL)
#ifdef __KERNEL__
-#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
+#define SET_PERSONALITY(ex, ibcs2) \
+do { \
+ if (ibcs2) \
+ set_personality(PER_SVR4); \
+ else if (current->personality != PER_LINUX32) \
+ set_personality(PER_LINUX); \
+} while (0)
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)