Remove initialization of static or global values to zero, throughout. This
just needlessly grows the size of the DLL. * tty.cc (tty::alive): Make inuse handle non-inheriting on open, just for thread safety.
This commit is contained in:
@@ -295,7 +295,7 @@ tty::alive (const char *fmt)
|
||||
char buf[sizeof (TTY_MASTER_ALIVE) + 16];
|
||||
|
||||
__small_sprintf (buf, fmt, ntty);
|
||||
if ((ev = OpenEvent (EVENT_ALL_ACCESS, TRUE, buf)))
|
||||
if ((ev = OpenEvent (EVENT_ALL_ACCESS, FALSE, buf)))
|
||||
CloseHandle (ev);
|
||||
return ev != NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user