diff options
author | Christopher Faylor <me@cgf.cx> | 2002-03-13 05:34:05 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-03-13 05:34:05 +0300 |
commit | 73ea29f42ce627a42e646c1256b2dd31b51a0afc (patch) | |
tree | 79a1a0e2f94f04de53d6814e14cae5921a76ee9d /winsup/cygserver/process.cc | |
parent | 2b1c041081cef338391a0613fbf87e8ae227d3e0 (diff) |
whitespace cleanup, update copyright
Diffstat (limited to 'winsup/cygserver/process.cc')
-rw-r--r-- | winsup/cygserver/process.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/winsup/cygserver/process.cc b/winsup/cygserver/process.cc index a5173afd3..4d0de2067 100644 --- a/winsup/cygserver/process.cc +++ b/winsup/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 <rbtcollins@hotmail.com> @@ -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 */ |