Bruno Haible via Gnulib discussion list <[email protected]> writes: > Collin Funk wrote: >> POSIX states [1]: >> >> If signum is equal to 0, the behavior is unspecified. ... >> However, I figured it was best to get others opinions first. Is it worth >> replacing the system sig2str in this case? > > We would need to have two modules 'sig2str-posix' and 'sig2str-gnu'. > Not worth it, in my opinion.
Replacing the sig2str function and making it return "EXIT" for 0 is POSIX-compliant, isn't it? So no need for two modules, really. If we follow that route, we could document that 'sig2str' go beyond the minimum POSIX compatibility and chose to be compatible with FreeBSD. I wonder if there is ever going to be any reasonable use for 0 meaning anything but "EXIT" though... did POSIX state any reason for this unspecified behaviour? /Simon
signature.asc
Description: PGP signature
