From: Britton <fsblk@aurora.uaf.edu>
To: linux-sound@vger.kernel.org
Subject: Re: close()ing audio device always yields 'Interrupted system call'
Date: Mon, 03 Apr 2000 03:31:52 +0000 [thread overview]
Message-ID: <marc-linux-sound-95473328816807@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-95464148708818@msgid-missing>
On Sat, 1 Apr 2000, Dave Mielke wrote:
> [quoted lines by Britton on April 1, 2000, at 17:08]
>
> >Even if I SYNC or RESET the device before closing.
>
> The close() is taking a significant amount of time, and your program is
> receiving a signal during that interval.
This is apparently exactly what was happening Dave, thanks for your help.
The guilty(?) signal turns out to be SIGCHLD, and looks like being due to
the manager thread going zombie. The odd thing is that both the threads
finish, and return success codes, and have apparently done their jobs
correctly, but the problem still comes up when I try to close /dev/dsp,
even if I sleep() for a while before trying the close(). Is it expected
behavior for the kernel to bother the parent process with signals
regarding thread child process states, even after successful
pthread_join()s, or is this suspicious behavior on the part of the kernel
or thread library? Why should I get this signal at the exact point where
I call close(audio_fd)?
I thought I would ask here before pestering the kernel people, any advice
greatly appreciated, and thanks again for your help.
> --
> Dave Mielke | 856 Grenon Avenue | I believe that the Bible is the
> Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
> EMail: dave@mielke.cc | Canada K2B 6G3 | if you're concerned about Hell.
Britton
prev parent reply other threads:[~2000-04-03 3:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-02 2:08 close()ing audio device always yields 'Interrupted system call' why? Britton
2000-04-02 2:12 ` close()ing audio device always yields 'Interrupted system call' Dave Mielke
2000-04-03 3:31 ` Britton [this message]
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=marc-linux-sound-95473328816807@msgid-missing \
--to=fsblk@aurora.uaf.edu \
--cc=linux-sound@vger.kernel.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