From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Zev Weiss <zev@bewilderbeest.net>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] alsactl: don't exit on EINTR from epoll_wait().
Date: Sun, 12 Apr 2020 11:15:00 +0900 [thread overview]
Message-ID: <20200412021457.GA3961@workstation> (raw)
In-Reply-To: <20191015043650.23536-1-zev@bewilderbeest.net>
On Mon, Oct 14, 2019 at 11:36:50PM -0500, Zev Weiss wrote:
> Previously, things like attaching strace to a running 'alsactl monitor'
> process would cause it to exit.
>
> Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
> ---
> alsactl/monitor.c | 2 ++
> 1 file changed, 2 insertions(+)
I'm sorry but I overlooked the post. It looks good to me.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> diff --git a/alsactl/monitor.c b/alsactl/monitor.c
> index 6b090e4f5c92..cf4167bee165 100644
> --- a/alsactl/monitor.c
> +++ b/alsactl/monitor.c
> @@ -342,6 +342,8 @@ static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs,
>
> count = epoll_wait(epfd, epev, max_ev_count, 200);
> if (count < 0) {
> + if (errno == EINTR)
> + continue;
> err = count;
> break;
> }
> --
> 2.23.0
Regards
Takashi Sakamoto
next prev parent reply other threads:[~2020-04-12 2:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-15 4:36 [alsa-devel] [PATCH] alsactl: don't exit on EINTR from epoll_wait() Zev Weiss
2020-04-12 2:15 ` Takashi Sakamoto [this message]
2020-04-14 13:24 ` Jaroslav Kysela
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=20200412021457.GA3961@workstation \
--to=o-takashi@sakamocchi.jp \
--cc=alsa-devel@alsa-project.org \
--cc=zev@bewilderbeest.net \
/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.