tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sigaction(2) broken in -current



Just had a look - it is just a logics bug in parameter checking.
Since I don't know the motivation behind your change, I've
just commented out the wrong part.

best regards
Matthias





-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
#
# old_revision [18912a976285bb1a8c142bb0a25213bc50c1f209]
#
# patch "sys/kern/sys_sig.c"
#  from [02634d80675c4f45e83a7ffac9e32bef84b9a1b9]
#    to [56ae61d214ef7c107c6af587f7e1a3cb3ac9f5fa]
#
============================================================
--- sys/kern/sys_sig.c  02634d80675c4f45e83a7ffac9e32bef84b9a1b9
+++ sys/kern/sys_sig.c  56ae61d214ef7c107c6af587f7e1a3cb3ac9f5fa
@@ -361,9 +361,11 @@ sigaction1(struct lwp *l, int signum, co
        }
 #endif /* MODULAR */
 
+#if 0
        if (vers == 0 && (tramp != NULL || p->p_emul->e_sigcode == NULL)) {
                return EINVAL;
        }
+#endif
        if (vers != 0 && (tramp == NULL || vers > 2)) {
                return EINVAL;
        }


Home | Main Index | Thread Index | Old Index