]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Make pollGtk resetable.
authorOliver Kurth <okurth@vmware.com>
Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)
committerOliver Kurth <okurth@vmware.com>
Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)
commitf48efc8e06529a63ab7574a97b41e6ff3846fd06
treebb41792172951431d5ec13b8b24b21c571ea9399
parent5d636d4032c9a3eb41b3424b09faf027b81e580b
Make pollGtk resetable.

A simple poll implementation built on top of GLib, pollGtk can only be
inited once in a program's lifetime.  This works for product but not
testcases.

This patch changes the function static variable "inited" to be file static,
and can be reset this variable in PollGtkExit().
open-vm-tools/lib/pollGtk/pollGtk.c