From 73ea29f42ce627a42e646c1256b2dd31b51a0afc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 13 Mar 2002 02:34:05 +0000 Subject: whitespace cleanup, update copyright --- winsup/cygwin/cygserver_process.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'winsup/cygwin/cygserver_process.cc') diff --git a/winsup/cygwin/cygserver_process.cc b/winsup/cygwin/cygserver_process.cc index a5173afd3..4d0de2067 100755 --- a/winsup/cygwin/cygserver_process.cc +++ b/winsup/cygwin/cygserver_process.cc @@ -1,6 +1,6 @@ /* cygserver_process.cc - Copyright 2001 Red Hat Inc. + Copyright 2001, 2002 Red Hat Inc. Written by Robert Collins @@ -117,10 +117,10 @@ process_cache::remove_process (class process *theprocess) { entry = (class process *) InterlockedExchangePointer (&head, theprocess->next); if (entry != theprocess) - { - printf ("Bug encountered, process cache corrupted\n"); + { + printf ("Bug encountered, process cache corrupted\n"); exit (1); - } + } } else { @@ -138,10 +138,9 @@ process_cache::remove_process (class process *theprocess) add_task (theprocess); } - /* copy <= max_copy HANDLEs to dest[], starting at an offset into _our list_ of * begin_at. (Ie begin_at = 5, the first copied handle is still written to dest[0] - * NOTE: Thread safe, but not thread guaranteed - a newly added process may be missed. + * NOTE: Thread safe, but not thread guaranteed - a newly added process may be missed. * Who cares - It'll get caught the next time. */ int @@ -227,7 +226,7 @@ process::handle () // thehandle = OpenProcess (PROCESS_ALL_ACCESS, FALSE, winpid); // debug_printf ("Got handle %p when refreshing cache process %ld\n", thehandle, winpid); // /* FIXME: what if OpenProcess fails ? */ -// if (thehandle) +// if (thehandle) // { // _exit_status = STILL_ACTIVE; // exit_code (); @@ -281,7 +280,7 @@ process::add_cleanup_routine (class cleanup_routine *new_cleanup) if (cleaning_up) return false; EnterCriticalSection (&access); - /* check that we didn't block with ::cleanup () + /* check that we didn't block with ::cleanup () * This rigmarole is to get around win9x's glaring missing TryEnterCriticalSection call * which would be a whole lot easier */ -- cgit v1.2.3