From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4D3AF2BE.8040104@domain.hid> Date: Sat, 22 Jan 2011 16:07:42 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4D384CC9.2040303@domain.hid> <4D386922.5080807@domain.hid> <4D38809E.3080906@domain.hid> <4D388975.80606@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] debug posix skin - pthread_cond_wait return EPERM List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenoka09@domain.hid Cc: xenomai@xenomai.org, Pierre.QUELIN@solystic.com Kolja Waschk wrote: > Hi, > >> The following patch seems to fix the issue, but I am not yet sure >> diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c > > Yes it does fix it for me too. The output of my "try" program when run with > gdbserver still differs from the output when run standalone, but at least there > are no EPERM results anymore. The first two tasks cycle pthread_cond_wait more > than once. Ok. If pthread_cond_wait returns anything else than 0, could not you simply print it then call exit? -- Gilles.