+Tue Oct 31 12:00:06 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * pinfo.cc (enum_init): Don't suffer silently if we can't load the
+ process enumerators.
+
Mon Oct 30 16:54:26 2000 Christopher Faylor <cgf@cygnus.com>
* signal.cc (kill_pgrp): Revert 25-Oct change.
{
h = LoadLibrary ("psapi.dll");
if (!h)
- return 0;
+ {
+ system_printf ("couldn't load psapi.dll, %E");
+ return 0;
+ }
myEnumProcesses = (ENUMPROCESSES) GetProcAddress (h, "EnumProcesses");
if (!myEnumProcesses)
- return 0;
+ {
+ system_printf ("couldn't locate EnumProcesses in psapi.dll, %E");
+ return 0;
+ }
}
else
{
myProcess32Next = (PROCESSWALK)
GetProcAddress(h, "Process32Next");
if (!myCreateToolhelp32Snapshot || !myProcess32First || !myProcess32Next)
- return 0;
+ {
+ system_printf ("Couldn't find toolhelp processes, %E");
+ return 0;
+ }
myEnumProcesses = EnumProcessesW95;
}