From f95778e7ac31c5c29d7a5b7a2b3114b3cabd7e1e Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 10 May 1995 21:19:49 +0000 Subject: [PATCH] Patch to work around sporadic error code in DosRequestMutexSem. --- v7/src/microcode/os2.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/os2.c b/v7/src/microcode/os2.c index 77ad2028a..d6c6adf96 100644 --- a/v7/src/microcode/os2.c +++ b/v7/src/microcode/os2.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: os2.c,v 1.4 1995/04/28 07:04:53 cph Exp $ +$Id: os2.c,v 1.5 1995/05/10 21:19:49 cph Exp $ Copyright (c) 1994-95 Massachusetts Institute of Technology @@ -201,7 +201,17 @@ OS2_close_mutex_semaphore (HMTX s) void OS2_request_mutex_semaphore (HMTX s) { - STD_API_CALL (dos_request_mutex_sem, (s, SEM_INDEFINITE_WAIT)); + XTD_API_CALL (dos_request_mutex_sem, (s, SEM_INDEFINITE_WAIT), + { + /* This return code has been sporadically occurring + on my machine. On a recent occurrence, I + proceeded past the error in the debugger, and the + program continued working without errors. IBM + tech support is mystified because this code + appears nowhere in their sources. */ + if (rc == 3000) + return; + }); } void -- 2.25.1