This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Anamoly with ioctl() in cygwin 1.7.10
Jon Clugston <jon.clugston <at> gmail.com> writes:
>
> Don't know if it will fix your problem, but you cannot just create a
> mutex on the stack and call "lock" on it. You must initialize it with
> "pthread_mutex_init()".
>
> Jon
>
>
Good catch. I missed that in my haste to scrounge a sample pgm together. With or
w/out initializing the mutex the anomaly still occurs.
LC
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple