summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-10-11 18:39:02 +0000
committerChristopher Faylor <me@cgf.cx>2005-10-11 18:39:02 +0000
commitdaed3bec547e6e3bf9bc8586d4f2526b8ee7861b (patch)
tree28b7562130204dbba7e88f91fb783daa2eaafcbb
parentd9b8d629669a44ad93acec4c954e187d1e50a609 (diff)
downloadcygnal-daed3bec547e6e3bf9bc8586d4f2526b8ee7861b.tar.gz
cygnal-daed3bec547e6e3bf9bc8586d4f2526b8ee7861b.tar.bz2
cygnal-daed3bec547e6e3bf9bc8586d4f2526b8ee7861b.zip
revert erroneous checkin
-rw-r--r--winsup/testsuite/winsup.api/mmaptest03.c1
-rw-r--r--winsup/utils/strace.cc7
2 files changed, 2 insertions, 6 deletions
diff --git a/winsup/testsuite/winsup.api/mmaptest03.c b/winsup/testsuite/winsup.api/mmaptest03.c
index b3141d998..8046f0bf8 100644
--- a/winsup/testsuite/winsup.api/mmaptest03.c
+++ b/winsup/testsuite/winsup.api/mmaptest03.c
@@ -103,7 +103,6 @@ main(int argc, char **argv)
what = "child";
}
- if (argc > 1) sleep (10);
if (pid == -1)
perror_exit ("fork failed");
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index f601c4418..1bd54ced0 100644
--- a/winsup/utils/strace.cc
+++ b/winsup/utils/strace.cc
@@ -128,7 +128,7 @@ get_child (DWORD id)
}
static void
-remove_child (FILE *ofile, DWORD id)
+remove_child (DWORD id)
{
child_list *c;
if (id == lastid)
@@ -138,9 +138,6 @@ remove_child (FILE *ofile, DWORD id)
{
child_list *c1 = c->next;
c->next = c1->next;
- DWORD n = 0xdeadbeef;
- GetExitCodeProcess (c1->hproc, &n);
- fprintf (ofile, "process %u exited with status %p\n", id, n);
free (c1);
return;
}
@@ -630,7 +627,7 @@ proc_child (unsigned mask, FILE *ofile, pid_t pid)
break;
case EXIT_PROCESS_DEBUG_EVENT:
- remove_child (ofile, ev.dwProcessId);
+ remove_child (ev.dwProcessId);
break;
case EXCEPTION_DEBUG_EVENT:
if (ev.u.Exception.ExceptionRecord.ExceptionCode !=