All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Problem with RTNET Packet Socket (or RTDM in general) in Xenomai 3
@ 2015-06-03 12:56 Marc Strämke
  2015-06-03 13:02 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 19+ messages in thread
From: Marc Strämke @ 2015-06-03 12:56 UTC (permalink / raw)
  To: xenomai

Hello everyone,

I am experiencing an issue with using packet sockets in Xenomai 3. I am at the 
moment trying to replicate it on a minimal testcase but struggling.
What I've found so far is that when a packet socket is read non-blocking with 
MSG_DONTWAIT the socket sometimes cannot be closed afterwards. 
I inserted a rt_printk into rt_packet_socket(fd,proto) and rt_packet_close(fd) 
in af_packet.c, sometimes rt_packet_close never gets called and so any further 
communication on this interface is effectively impossible.

Any hints on where I should start looking? 
I assume the socket should be closed by Xenomai in any case, even if the 
application abnormally terminates without calling close? If that is not the 
case how do I make sure to clean up after the application in case the 
application terminates abnormally?

Best Regards,
Marc


-- 
Dipl.-Ing. Marc Strämke
Geschäftsführer / CEO

ELTROPULS Anlagenbau GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://xenomai.org/pipermail/xenomai/attachments/20150603/bc364372/attachment.sig>

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-09-30 14:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-03 12:56 [Xenomai] Problem with RTNET Packet Socket (or RTDM in general) in Xenomai 3 Marc Strämke
2015-06-03 13:02 ` Gilles Chanteperdrix
2015-06-03 17:09   ` Marc Strämke
2015-06-04 10:41     ` [Xenomai] rtnet locking/socket SKBs Marc Strämke
2015-06-04 10:56       ` Gilles Chanteperdrix
2015-06-04 11:09         ` Marc Strämke
2015-06-04 11:12           ` [Xenomai] [PATCH] Proof of concept: disable locking in af_packet skb pool Marc Strämke
2015-06-04 14:15             ` Gilles Chanteperdrix
2015-06-04 11:20           ` [Xenomai] rtnet locking/socket SKBs Gilles Chanteperdrix
2015-06-04 11:31           ` Gilles Chanteperdrix
2015-06-04 12:35             ` Marc Strämke
2015-06-04 12:37               ` Gilles Chanteperdrix
2015-06-04 12:40                 ` Marc Strämke
2015-06-04 14:07               ` Gilles Chanteperdrix
2015-09-27 21:32       ` Gilles Chanteperdrix
2015-09-29 21:59         ` Gilles Chanteperdrix
2015-09-30 14:33           ` Marc Strämke
2015-09-30 14:41             ` Gilles Chanteperdrix
2015-09-30 14:44               ` Marc Strämke

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.