* Re: [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively [not found] <E1WJ3I1-00060i-NR@sd-51317.dedibox.fr> @ 2014-02-27 19:49 ` Gilles Chanteperdrix 2014-02-28 8:44 ` Philippe Gerum 0 siblings, 1 reply; 6+ messages in thread From: Gilles Chanteperdrix @ 2014-02-27 19:49 UTC (permalink / raw) To: xenomai On 02/27/2014 04:54 PM, git repository hosting wrote: > memset(&sa, 0, sizeof(sa)); > sa.sa_handler = SIG_IGN; > sigaction(SIGCHLD, &sa, NULL); Why not masking the signal here instead of ignoring it? So that the notifications which would happen during the short interval are not lost? -- Gilles. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively 2014-02-27 19:49 ` [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively Gilles Chanteperdrix @ 2014-02-28 8:44 ` Philippe Gerum 2014-02-28 11:09 ` Gilles Chanteperdrix 0 siblings, 1 reply; 6+ messages in thread From: Philippe Gerum @ 2014-02-28 8:44 UTC (permalink / raw) To: Gilles Chanteperdrix, xenomai On 02/27/2014 08:49 PM, Gilles Chanteperdrix wrote: > On 02/27/2014 04:54 PM, git repository hosting wrote: >> memset(&sa, 0, sizeof(sa)); >> sa.sa_handler = SIG_IGN; >> sigaction(SIGCHLD, &sa, NULL); > > Why not masking the signal here instead of ignoring it? So that the > notifications which would happen during the short interval are not lost? > > We only want the child to be reaped instead of going zombie, we don't actually care about the exit status. -- Philippe. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively 2014-02-28 8:44 ` Philippe Gerum @ 2014-02-28 11:09 ` Gilles Chanteperdrix 2014-02-28 11:11 ` Philippe Gerum 0 siblings, 1 reply; 6+ messages in thread From: Gilles Chanteperdrix @ 2014-02-28 11:09 UTC (permalink / raw) To: Philippe Gerum; +Cc: xenomai On 02/28/2014 09:44 AM, Philippe Gerum wrote: > On 02/27/2014 08:49 PM, Gilles Chanteperdrix wrote: >> On 02/27/2014 04:54 PM, git repository hosting wrote: >>> memset(&sa, 0, sizeof(sa)); >>> sa.sa_handler = SIG_IGN; >>> sigaction(SIGCHLD, &sa, NULL); >> >> Why not masking the signal here instead of ignoring it? So that the >> notifications which would happen during the short interval are not lost? >> >> > > We only want the child to be reaped instead of going zombie, we don't > actually care about the exit status. What if the application wants the exit status of another child process which would be created at the same time? -- Gilles. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively 2014-02-28 11:09 ` Gilles Chanteperdrix @ 2014-02-28 11:11 ` Philippe Gerum 2014-02-28 11:30 ` Gilles Chanteperdrix 0 siblings, 1 reply; 6+ messages in thread From: Philippe Gerum @ 2014-02-28 11:11 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 02/28/2014 12:09 PM, Gilles Chanteperdrix wrote: > On 02/28/2014 09:44 AM, Philippe Gerum wrote: >> On 02/27/2014 08:49 PM, Gilles Chanteperdrix wrote: >>> On 02/27/2014 04:54 PM, git repository hosting wrote: >>>> memset(&sa, 0, sizeof(sa)); >>>> sa.sa_handler = SIG_IGN; >>>> sigaction(SIGCHLD, &sa, NULL); >>> >>> Why not masking the signal here instead of ignoring it? So that the >>> notifications which would happen during the short interval are not lost? >>> >>> >> >> We only want the child to be reaped instead of going zombie, we don't >> actually care about the exit status. > > What if the application wants the exit status of another child process > which would be created at the same time? > This can't be, since the application has not started yet at this point. -- Philippe. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively 2014-02-28 11:11 ` Philippe Gerum @ 2014-02-28 11:30 ` Gilles Chanteperdrix 2014-02-28 11:32 ` Philippe Gerum 0 siblings, 1 reply; 6+ messages in thread From: Gilles Chanteperdrix @ 2014-02-28 11:30 UTC (permalink / raw) To: Philippe Gerum; +Cc: xenomai On 02/28/2014 12:11 PM, Philippe Gerum wrote: > On 02/28/2014 12:09 PM, Gilles Chanteperdrix wrote: >> On 02/28/2014 09:44 AM, Philippe Gerum wrote: >>> On 02/27/2014 08:49 PM, Gilles Chanteperdrix wrote: >>>> On 02/27/2014 04:54 PM, git repository hosting wrote: >>>>> memset(&sa, 0, sizeof(sa)); >>>>> sa.sa_handler = SIG_IGN; >>>>> sigaction(SIGCHLD, &sa, NULL); >>>> >>>> Why not masking the signal here instead of ignoring it? So that the >>>> notifications which would happen during the short interval are not lost? >>>> >>>> >>> >>> We only want the child to be reaped instead of going zombie, we don't >>> actually care about the exit status. >> >> What if the application wants the exit status of another child process >> which would be created at the same time? >> > > This can't be, since the application has not started yet at this point. > Even if it loads xenomai libraries with dlopen? -- Gilles. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively 2014-02-28 11:30 ` Gilles Chanteperdrix @ 2014-02-28 11:32 ` Philippe Gerum 0 siblings, 0 replies; 6+ messages in thread From: Philippe Gerum @ 2014-02-28 11:32 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 02/28/2014 12:30 PM, Gilles Chanteperdrix wrote: > On 02/28/2014 12:11 PM, Philippe Gerum wrote: >> On 02/28/2014 12:09 PM, Gilles Chanteperdrix wrote: >>> On 02/28/2014 09:44 AM, Philippe Gerum wrote: >>>> On 02/27/2014 08:49 PM, Gilles Chanteperdrix wrote: >>>>> On 02/27/2014 04:54 PM, git repository hosting wrote: >>>>>> memset(&sa, 0, sizeof(sa)); >>>>>> sa.sa_handler = SIG_IGN; >>>>>> sigaction(SIGCHLD, &sa, NULL); >>>>> >>>>> Why not masking the signal here instead of ignoring it? So that the >>>>> notifications which would happen during the short interval are not lost? >>>>> >>>>> >>>> >>>> We only want the child to be reaped instead of going zombie, we don't >>>> actually care about the exit status. >>> >>> What if the application wants the exit status of another child process >>> which would be created at the same time? >>> >> >> This can't be, since the application has not started yet at this point. >> > Even if it loads xenomai libraries with dlopen? > Yes, even in that case. The copperplate core would not be initialized. -- Philippe. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-28 11:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1WJ3I1-00060i-NR@sd-51317.dedibox.fr>
2014-02-27 19:49 ` [Xenomai] [Xenomai-git] Philippe Gerum : copperplate/registry: reap sysregd selectively Gilles Chanteperdrix
2014-02-28 8:44 ` Philippe Gerum
2014-02-28 11:09 ` Gilles Chanteperdrix
2014-02-28 11:11 ` Philippe Gerum
2014-02-28 11:30 ` Gilles Chanteperdrix
2014-02-28 11:32 ` Philippe Gerum
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.