All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org, "Landau, Bracha" <BLandau@domain.hid>
Subject: Re: [Xenomai-help] kernel oops using mq_open after fork
Date: Wed, 19 Jul 2006 14:10:57 +0200	[thread overview]
Message-ID: <1153311058.5036.42.camel@domain.hid> (raw)
In-Reply-To: <17598.7383.550897.877061@domain.hid>

On Wed, 2006-07-19 at 13:51 +0200, Gilles Chanteperdrix wrote:
> Landau, Bracha wrote:
>  > I'm using xenomai 2.2 rc3 on a MPC8247, on linux 2.6.14.
>  >  
>  > I have a problem using mq_open. Please see the attached code.
>  > If I fork before the mq_open the kernel, I get a kernel oops.
>  > 
>  > Why this behaviour?
> 
> The child process has not "bound" the interface, so, it has no
> per-process data. If this is the cause of the oops, the solution is to
> add a pthread_atfork call in xeno_user_skin_init in order for the
> process children to also call xeno_user_skin_init.

Additionally, don't fiddle with SIGCHLD: we use it internally.

> 
-- 
Philippe.




  reply	other threads:[~2006-07-19 12:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200607111736.k6BHaCme029123@domain.hid>
2006-07-19 10:47 ` [Xenomai-help] kernel oops using mq_open after fork Landau, Bracha
2006-07-19 11:51   ` Gilles Chanteperdrix
2006-07-19 12:10     ` Philippe Gerum [this message]
2006-07-19 12:59     ` 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=1153311058.5036.42.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=BLandau@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.