diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-03-25 23:40:36 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-03-25 23:40:36 +0000 |
commit | 7206675c40394c78a90e74812bbdbf8cf3cca1be (patch) | |
tree | 251895cf5a0008e2b4ce438cb01ad4d55fb5b97b /fs/exec.c | |
parent | beb116954b9b7f3bb56412b2494b562f02b864b1 (diff) |
Import of Linux/MIPS 2.1.14.2
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -67,6 +67,10 @@ void binfmt_setup(void) init_elf_binfmt(); #endif +#ifdef CONFIG_BINFMT_IRIX + init_irix_binfmt(); +#endif + #ifdef CONFIG_BINFMT_AOUT init_aout_binfmt(); #endif @@ -399,7 +403,7 @@ static inline void flush_old_signals(struct signal_struct *sig) struct sigaction * sa = sig->action; for (i=32 ; i != 0 ; i--) { - u_sigemptyset(¤t->sig->action[i].sa_mask); + u_sigemptyset(&sa->sa_mask); sa->sa_flags = 0; if (sa->sa_handler != SIG_IGN) sa->sa_handler = NULL; @@ -454,8 +458,9 @@ void flush_old_exec(struct linux_binprm * bprm) if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || permission(bprm->inode,MAY_READ)) current->dumpable = 0; - flush_old_signals(current->sig); - flush_old_files(current->files); + + flush_old_signals(current->sig); + flush_old_files(current->files); } /* |