This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: code fatal error!
- From: Martin Buck <martin dot buck at ascom dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 23 Jul 2002 13:38:20 +0200
- Subject: Re: [ECOS] code fatal error!
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
- References: <F142OkTRhlQnNE6f17r00018cb8@hotmail.com>
ÕÅ ÁÁ wrote:
> in eCos,kill() function does not release mutex owned by thread which
> will be killed.
Neither does it free its allocated memory, close its open files, etc.
Why should it release its mutexes?
> I think it as a fatal error.right?
Yes, a fatal programmer error. You're supposed to read the documentation
first.
> or more wise machanism
> avoids this state?
Send the thread a message asking it to clean up and terminate itself.
Martin
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss