All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Karl Reichert" <Karl-Trampe@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problems with Threads and RTnet
Date: Tue, 01 Jul 2008 16:11:02 +0200	[thread overview]
Message-ID: <20080701141102.247930@domain.hid> (raw)
In-Reply-To: <4869EF09.2060908@domain.hid>

> >>> Forgot to close the socket when program finishes, this is why the
> >>> second run always failed. Now it works :)
> >>>
> >>> I thought that the socket will be closed automatically when the
> >>> program exits, as this is the case in POSIX?! Is there a reason why
> >>> this is not done in RTnet?
> >> RTDM should do it with Xenomai 2.4. Are you sure you are not using an 
> >> older version of the kernel-space support ?
> > 
> > No, I'm using Xenomai 2.4.3 without any additional patches, so there is
> no older version of kernel-space support installed.
> 
> If you have a simple test program, I would be glade to cross-check here.
> 
> Moreover, you could have a look at /proc/xenomai/rtdm/open_fildes before
> and after closing your app. It should give an overview on all open
> descriptors. If they are stalled after closing your RTnet app, this is
> definitely a bug that has to be understood and fixed.
> 
> Jan
> 

After a deeper look I found out, that we are using Xenomai 2.3.2, not 2.4.x
So the socket has to be manually closed.

After doing so, /proc/xenomai/rtdm/open_fildes shows no more open descriptors.

So everything is fine, thanks for your help!

Karl
-- 
von Karl Reichert



  reply	other threads:[~2008-07-01 14:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-26 10:03 [Xenomai-help] Problems with Threads and RTnet Karl Reichert
2008-06-30  8:40 ` Karl Reichert
2008-06-30 13:49   ` Gilles Chanteperdrix
2008-07-01  7:45     ` Karl Reichert
2008-07-01  8:47       ` Jan Kiszka
2008-07-01 14:11         ` Karl Reichert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-06-25 15:49 Karl Reichert
2008-06-25 15:56 ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080701141102.247930@domain.hid \
    --to=karl-trampe@domain.hid \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.