minor bugs in pthread_setcancelstate and pthread_setcanceltype

dirk.derycke@icos.be dirk.derycke@icos.be
Fri Feb 22 03:16:00 GMT 2002


Hi all,

for the functions (thread.cc):
int __pthread_setcancelstate (int state, int *oldstate)
int __pthread_setcanceltype (int type, int *oldtype)
can somebody add the checking whether the pointers oldstate and oldtype are
nill pointers?

The Linux man page says that the previous state/type is not saved when the
pointer is zero.
Currently we get the annoying SIGSEGV crash when the old state/type is
written to address 0x0.

regards,

Dirk

cygcheck -s -v -r
(See attached file: cygcheck.out)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 19063 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020222/f6040695/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list