]> 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, 12 Sep 2012 13:54:06 +0000 (15:54 +0200)
commited718c0b6fd9891b2f268ccdc5440ffe6add1ae9
treee21bd544347f188ed18c7527f9887085b60a253f
parentc8eaa9b39ffe2549b914a9285abf30a51b965442
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