Avoid delays trying to fetch Cygwin info from non-Cygwin processes
* pinfo.cc (_pinfo::commune_request): Don't try to send commune requests to non-Cygwin processes. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* pinfo.cc: process table support
|
||||
|
||||
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
||||
2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
|
||||
2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@@ -690,6 +690,11 @@ _pinfo::commune_request (__uint32_t code, ...)
|
||||
set_errno (ESRCH);
|
||||
goto err;
|
||||
}
|
||||
if (ISSTATE (this, PID_NOTCYGWIN))
|
||||
{
|
||||
set_errno (ENOTSUP);
|
||||
goto err;
|
||||
}
|
||||
|
||||
va_start (args, code);
|
||||
si._si_commune._si_code = code;
|
||||
|
Reference in New Issue
Block a user