summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorMichael Tokarev2016-11-02 15:18:50 +0100
committerPaolo Bonzini2016-11-09 14:08:17 +0100
commit004c8e0090025b4fde4e99fbc5a81049be8f79d1 (patch)
tree75acefe8753f94a3e4f99b78448097994bb0c0a9 /hw/core
parenttarget-i386: fix typo (diff)
downloadqemu-004c8e0090025b4fde4e99fbc5a81049be8f79d1.tar.gz
qemu-004c8e0090025b4fde4e99fbc5a81049be8f79d1.tar.xz
qemu-004c8e0090025b4fde4e99fbc5a81049be8f79d1.zip
vl.c: move pidfile creation up the line
With current code, pid file is open after various sockets, chardevs, fsdevs and the like. This causes interesting effects, for example when monitor is a unix-socket, and another qemu instance is already running, new qemu first "damages" the socket and next complain that it can't acquire the pid file and exits, making running qemu unreachable. Move pid file creation earlier, right after the call to os_daemonize(), where we know our process id (pid). Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Message-Id: <1478096330-18081-1-git-send-email-mjt@msgid.tls.msk.ru> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions