]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: Fix X-win related crash for PulseAudio plugin (bad linking)
authorJaroslav Kysela <perex@perex.cz>
Wed, 2 Nov 2011 16:27:47 +0000 (17:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 2 Nov 2011 16:27:47 +0000 (17:27 +0100)
commit4c09aaa5c13c2260fea57a89c47f88252da8a692
tree0d96fd01e1fa9cd7c9a69497b3dd6f21c8546076
parentaf0bf78505be9473c7ce276f91942a5d8f1ad41c
alsamixer: Fix X-win related crash for PulseAudio plugin (bad linking)

A lot of reports that alsamixer crashes in X terminal when the PulseAudio
CTL plugin is activated were entered to the tracking systems.

I figured that there is a linking clash for the shutdown() function.
The shutdown() function in glibc is socket related, but the alsamixer code
redefines this function and appearently that under some linking
circumstances - which PA client invokes during the runtime dynamic linking
- the wrong function is called.

This patch, for safety, renames the shutdown() function from alsamixer
to app_shutdown(), but it might make sense to figure the real linking
culprit to avoid future surprises.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsamixer/cli.c
alsamixer/die.c
alsamixer/mainloop.c
alsamixer/mainloop.h