Changeset 978 for trunk/server/lib/tdb/tools
- Timestamp:
- Sep 2, 2016, 11:44:25 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/tdb/tools/tdbtorture.c
r906 r978 2 2 writers - that stresses the locking code. 3 3 */ 4 5 #ifdef __OS2__6 #define INCL_DOSEXCEPTIONS7 #define INCL_DOSPROCESS8 #define INCL_DOSMODULEMGR9 #define INCL_LOADEXCEPTQ10 #define INCL_FORKEXCEPTQ11 #include <os2.h>12 #include <exceptq.h>13 #endif14 4 15 5 #include "replace.h" … … 245 235 static int run_child(const char *filename, int i, int seed, unsigned num_loops, unsigned start) 246 236 { 247 #ifdef __OS2__248 EXCEPTIONREGISTRATIONRECORD ExRegRec;249 LoadExceptq(&ExRegRec, NULL, NULL);250 #endif251 237 db = tdb_open_ex(filename, hash_size, TDB_DEFAULT, 252 238 O_RDWR | O_CREAT, 0600, &log_ctx, NULL); … … 286 272 tdb_close(db); 287 273 288 #ifdef __OS2__289 UninstallExceptq(&ExRegRec);290 #endif291 274 return (error_count < 100 ? error_count : 100); 292 275 } … … 323 306 324 307 log_ctx.log_fn = tdb_log; 325 #ifdef __OS2__326 EXCEPTIONREGISTRATIONRECORD ExRegRec;327 LoadExceptq(&ExRegRec, NULL, NULL);328 #endif329 308 330 309 while ((c = getopt(argc, argv, "n:l:s:H:thk")) != -1) { … … 475 454 476 455 free(test_tdb); 477 #ifdef __OS2__478 UninstallExceptq(&ExRegRec);479 #endif480 456 return error_count; 481 457 }
Note:
See TracChangeset
for help on using the changeset viewer.