Reuse the same delegate for checking if the runtime is shutting down.
authorMiguel de Icaza <miguel@gnome.org>
Thu, 16 Sep 2010 15:51:14 +0000 (11:51 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 16 Sep 2010 15:58:45 +0000 (11:58 -0400)
commitc7349ea2190187f5456566e13d7ce515bec4bcb5
tree06cc804fe465f3bb77d531febc6cf359da0d45a5
parentb1de5e6ba56bb3d9aeb9e1c5f11fda96c5d4a935
Reuse the same delegate for checking if the runtime is shutting down.

Instead of creating a new delegate every time that WaitAny is invoked,
reuse the same delegate.   We also keep a permanent reference to prevent
this delegate being collected.

Thsi should fix 592981
mcs/class/Mono.Posix/Mono.Unix/UnixSignal.cs