Fossil

Check-in [0ef0e105]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Just in case, modify backofficeTimeout() to handle being called more than once on Win32.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | win32Proc
Files: files | file ages | folders
SHA3-256: 0ef0e10557e1e5a204bc1a12d99162bf69f10c236bdacb7be0555dbb6abd43cd
User & Date: mistachkin 2018-08-02 03:05:30
Context
2018-08-07
20:58
Improved windows code for the backoffice. Properly check to see if processes still exist. Provide a timeout feature. check-in: 43c29877 user: drh tags: trunk
2018-08-02
03:05
Just in case, modify backofficeTimeout() to handle being called more than once on Win32. Closed-Leaf check-in: 0ef0e105 user: mistachkin tags: win32Proc
03:03
Wrap use of getpid() in the trace statements. check-in: 842bf225 user: mistachkin tags: win32Proc
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/backoffice.c.

235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
  }
  _endthreadex(0);
  return 0; /* NOT REACHED */
}
#endif
static void backofficeTimeout(int x){
#if defined(_WIN32)
  if( threadHandle!=NULL ) return;
  threadHandle = (void*)_beginthreadex(
    0, 0, backofficeWin32SigalrmThreadProc, FOSSIL_INT_TO_PTR(x), 0, 0
  );
#else
  signal(SIGALRM, backofficeSigalrmHandler);
  alarm(x);
#endif







|







235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
  }
  _endthreadex(0);
  return 0; /* NOT REACHED */
}
#endif
static void backofficeTimeout(int x){
#if defined(_WIN32)
  backofficeWin32ThreadCleanup();
  threadHandle = (void*)_beginthreadex(
    0, 0, backofficeWin32SigalrmThreadProc, FOSSIL_INT_TO_PTR(x), 0, 0
  );
#else
  signal(SIGALRM, backofficeSigalrmHandler);
  alarm(x);
#endif