On Fri, Jun 15, 2007 at 06:24:48PM +0300, Maksym Yehorov wrote: > That means that I can not use pthread_cleanup_push for deferred > cleanup of some resources after the thread is finished? > It seems that it can work that way. No, you can only use it the way it's described in POSIX. -- Daniel Jacobowitz CodeSourcery