4.2BSD signal bugs
gwyn%brl-vld at sri-unix.UUCP
gwyn%brl-vld at sri-unix.UUCP
Tue Dec 20 20:35:50 AEST 1983
From: Doug Gwyn (VLD/VMB) <gwyn at brl-vld>
The manual says that signal # i is represented by the i-th bit in the
signal mask. This is true only if you consider the low-order bit to
be the first bit. In C, signal # i corresponds to (1L << (i-1)).
The lint library /usr/lib/lint/llib-lc has sigvec(2) all wrong.
See accompanying article for a replacement C library signal(2) routine.
More information about the Comp.unix.wizards
mailing list