Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   kleink
Date:           Wed Sep  9 19:34:00 UTC 1998

Modified Files:
        src/lib/libc/stdlib: random.c
Log Message:
Addendum to previous commit: remove stdio usage from sections during which
random_mutex is locked, because
* a cancellation point may occur during fprintf(), and no cancellation handler
had been installed, and
* the XSH5 specifcation of these functions does not permit output to stderr.
Therefore, in initstate() and setstate(), return a null pointer if the supplied
state is not valid.  This also fixes a bug in setstate() which caused corrupt
state information being used despite printing an error message.




Home | Main Index | Thread Index | Old Index