summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sigproc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 43655dc4c..b98aa6fd3 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -1,9 +1,7 @@
/* sigproc.cc: inter/intra signal and sub process handler
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008, 2009, 2010 Red Hat, Inc.
-
- Written by Christopher Faylor
+ 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
This file is part of Cygwin.
@@ -930,11 +928,18 @@ child_info::proc_retry (HANDLE h)
}
bool
-child_info_fork::handle_failure (DWORD err)
+child_info_fork::abort (const char *fmt, ...)
{
+ if (fmt)
+ {
+ va_list ap;
+ va_start (ap, fmt);
+ strace_vprintf (SIGP, fmt, ap);
+ ExitProcess (EXITCODE_FORK_FAILED);
+ }
if (retry > 0)
ExitProcess (EXITCODE_RETRY);
- return 0;
+ return false;
}
/* Check the state of all of our children to see if any are stopped or