+2005-10-11 Christopher Faylor <cgf@timesys.com>
+
+ * Makefile.common (CFLAGS_COMMON): Add -Wstrict-aliasing.
+
2005-03-22 Christopher Faylor <cgf@timesys.com>
* Makefile.common: Add -dD to options when creating preprocess files.
# This makefile requires GNU make.
-CFLAGS_COMMON:=-Wall -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0# -finline-functions
+CFLAGS_COMMON:=-Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0# -finline-functions
MALLOC_DEBUG:=#-DMALLOC_DEBUG -I/cygnus/src/uberbaum/winsup/cygwin/dlmalloc
MALLOC_OBJ:=#/cygnus/src/uberbaum/winsup/cygwin/dlmalloc/malloc.o
what = "child";
}
+ if (argc > 1) sleep (10);
if (pid == -1)
perror_exit ("fork failed");
}
static void
-remove_child (DWORD id)
+remove_child (FILE *ofile, DWORD id)
{
child_list *c;
if (id == lastid)
{
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;
}
break;
case EXIT_PROCESS_DEBUG_EVENT:
- remove_child (ev.dwProcessId);
+ remove_child (ofile, ev.dwProcessId);
break;
case EXCEPTION_DEBUG_EVENT:
if (ev.u.Exception.ExceptionRecord.ExceptionCode !=
WINBASEAPI DWORD WINAPI GetCurrentProcessId(void);
WINBASEAPI HANDLE WINAPI GetCurrentThread(void);
WINBASEAPI DWORD WINAPI GetCurrentThreadId(void);
+WINBASEAPI DWORD WINAPI GetProcessId(HANDLE);
#define GetCurrentTime GetTickCount
WINBASEAPI BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,PDWORD);
WINBASEAPI BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,PDWORD);
#define PF_INET6 AF_INET6
#define PF_MAX AF_MAX
#define SOL_SOCKET 0xffff
-#define SOMAXCONN 5
#if !(defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__))
+#define SOMAXCONN 5
#define MSG_OOB 1
#define MSG_PEEK 2
#define MSG_DONTROUTE 4