From: "Joe Hsu" <nagual.hsu@gmail.com>
To: Dirk Jagdmann <doj@cubic.org>
Cc: alsa-devel@alsa-project.org
Subject: Re: libaoss.so hole?
Date: Sat, 18 Mar 2006 07:20:25 +0800 [thread overview]
Message-ID: <7fe205990603171520t29c81bag@mail.gmail.com> (raw)
In-Reply-To: <441AF6C6.4090706@cubic.org>
2006/3/18, Dirk Jagdmann <doj@cubic.org>:
> > I have an oss application which registers SIGCHLD signal handler
> > in the beginning and then opens /dev/dsp, and then forks a child
> > process. If the child process dies, the father process would receive a
> > SIGCHLD process and then free the allocated resources and then exit.
>
> I don't see any problem here if you did your code right.
> 1) fork() does return the pid of the child
> 2) in your SIGCHLD handler call wait(int*) which returns the pid of the
> terminated process.
> 3) If the pid from fork() and wait() match you can do your cleanup()
> 4) If they don't match, simply ignore the signal, as some other process
> (probably from the alsa lib) has died.
>
> --
> ---> Dirk Jagdmann ^ doj / cubic
> ----> http://cubic.org/~doj
> -----> http://llg.cubic.org
>
Of course. I know what you mean. But that is like a work around to
me. And I did a work around too. Since many oss developers didn't
think about the oss-to-alsa layer, this layer must be as transparent
as possible.
Well, just my own opinion.
--
The sun is shinny but the ice is slippery.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
next prev parent reply other threads:[~2006-03-17 23:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 13:12 libaoss.so hole? Joe Hsu
2006-03-17 16:51 ` Takashi Iwai
2006-03-20 2:18 ` nagual.hsu
2006-03-17 17:49 ` Dirk Jagdmann
2006-03-17 23:20 ` Joe Hsu [this message]
2006-03-17 23:27 ` Joe Hsu
2006-03-20 11:46 ` Takashi Iwai
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=7fe205990603171520t29c81bag@mail.gmail.com \
--to=nagual.hsu@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=doj@cubic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox