]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: fix "apt-get update" on linux-user hppa
authorLaurent Vivier <laurent@vivier.eu>
Thu, 26 Jan 2017 08:04:48 +0000 (09:04 +0100)
committerRichard Henderson <rth@twiddle.net>
Tue, 7 Feb 2017 02:24:39 +0000 (18:24 -0800)
commit40493c5f2b0f124c9b2581e539bba14522e51269
tree12173e1cc99b2fb7da07844324f13b1285497404
parente4d966cc651f633cf5244fceb6b0a1dd78d4dd14
linux-user: fix "apt-get update" on linux-user hppa

apt-get was hanging on linux-user hppa.

strace has shown the netlink data stream was not correctly byte swapped.

It appears the fd translator function is unregistered just after it
has been registered, so the translator function is not called.

This patch removes the fd_trans_unregister() after the do_socket()
in the TARGET_NR_socket case.

This fd_trans_unregister() was added by commit
    e36800c linux-user: add signalfd/signalfd4 syscalls
when do_socket() was not registering any fd translator.
And as now it is, we must remove this fd_trans_unregister() to keep them.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Message-Id: <20170126080449.28255-3-laurent@vivier.eu>
Signed-off-by: Richard Henderson <rth@twiddle.net>
linux-user/syscall.c