sgrpsig: correct sign
authorAlan Cox <alan@linux.intel.com>
Mon, 18 May 2015 22:18:03 +0000 (23:18 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 18 May 2015 22:18:03 +0000 (23:18 +0100)
This was inherited from code that used negatives to indicate process groups
but is called by methods that pass the pgrp.

Kernel/process.c

index c7b866f..3600afe 100644 (file)
@@ -425,7 +425,7 @@ void sgrpsig(uint16_t pgrp, uint16_t sig)
 {
        ptptr p;
        for (p = ptab; p < ptab_end; ++p) {
-               if (-p->p_pgrp == pgrp)
+               if (p->p_pgrp == pgrp)
                        ssig(p, sig);
        }
 }