Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch backoffice-win Excluding Merge-Ins
This is equivalent to a diff from 1dd2527f to 5d7c00f7
2019-05-02
| ||
03:36 | tclsh8.7 is out there... ... (check-in: 8b276cf9 user: bch tags: trunk) | |
2019-04-26
| ||
16:53 | Another invocation of the backoffice was found where the option "--nocgi" might be necessary. ... (Closed-Leaf check-in: 5d7c00f7 user: tsbg tags: backoffice-win) | |
16:45 | Make sure that the "--nocgi" option gets removed from the command line (hint: short circuit evaluation of the && operator). ... (check-in: 417e2b41 user: tsbg tags: backoffice-win) | |
16:39 | Merge trunk. ... (check-in: 3a19db88 user: tsbg tags: backoffice-win) | |
2019-04-25
| ||
14:28 | Make full use of the new file_tempname() in "fossil diff" with both --from and --to options. Improve file_tempname() to allow for a suggested differentiator tag. ... (check-in: 1dd2527f user: drh tags: trunk) | |
2019-04-24
| ||
12:59 | Preserve the basis-file suffix when generating temporary file names. ... (check-in: a072be1e user: drh tags: trunk) | |
Changes to src/alerts.c.
︙ | |||
841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 | 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 | + + + + + + + + + + | } rc = sqlite3_reset(p->pStmt); if( rc!=SQLITE_OK ){ emailerError(p, "Failed to insert email message into output queue.\n" "%s", sqlite3_errmsg(p->db)); } }else if( p->zCmd ){ #if !defined(_WIN32) FILE *out = popen(p->zCmd, "w"); #else int in, pid; FILE *out; popen2(p->zCmd, &in, &out, &pid); #endif if( out ){ fwrite(blob_buffer(&all), 1, blob_size(&all), out); #if !defined(_WIN32) pclose(out); #else pclose2(in ,out, pid); #endif }else{ emailerError(p, "Could not open output pipe \"%s\"", p->zCmd); } }else if( p->zDir ){ char *zFile = file_time_tempname(p->zDir, ".email"); blob_write_to_file(&all, zFile); fossil_free(zFile); |
︙ |
Changes to src/backoffice.c.
︙ | |||
282 283 284 285 286 287 288 | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | - + - + | ** we cannot prove the the process is dead, return true. */ static int backofficeProcessExists(sqlite3_uint64 pid){ #if defined(_WIN32) return pid>0 && backofficeWin32ProcessExists((DWORD)pid)!=0; #else return pid>0 && kill((pid_t)pid, 0)==0; |
︙ | |||
468 469 470 471 472 473 474 475 476 477 478 479 480 481 | 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 | + + | x.idNext = 0; x.tmNext = 0; backofficeWriteLease(&x); db_end_transaction(0); backofficeTrace("/***** Begin Backoffice Processing %d *****/\n", GETPID()); backoffice_work(); backofficeTrace("/***** End Backoffice Processing %d *****/\n", GETPID()); break; } if( backofficeNoDelay || db_get_boolean("backoffice-nodelay",0) ){ /* If the no-delay flag is set, exit immediately rather than queuing ** up. Assume that some future request will come along and handle any ** necessary backoffice work. */ db_end_transaction(0); |
︙ | |||
598 599 600 601 602 603 604 | 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 | - + | time_t iNext = time(0); for(i=2; i<g.argc; i++){ Blob cmd; if( !file_isfile(g.argv[i], ExtFILE) ) continue; if( iNow && iNow>file_mtime(g.argv[i],ExtFILE) ) continue; blob_init(&cmd, 0, 0); blob_append_escaped_arg(&cmd, g.nameOfExe); |
︙ | |||
641 642 643 644 645 646 647 | 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | + + - - + + - - + - - + + + + - - + - - + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + | void backoffice_run_if_needed(void){ if( backofficeDb==0 ) return; if( strcmp(backofficeDb,"x")==0 ) return; if( g.db ) return; if( g.repositoryOpen ) return; #if defined(_WIN32) { STARTUPINFOW si; PROCESS_INFORMATION pi; |
︙ |
Changes to src/main.c.
︙ | |||
680 681 682 683 684 685 686 | 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 | - + | sqlite3_vfs *pVfs = sqlite3_vfs_find(g.zVfsName); if( pVfs ){ sqlite3_vfs_register(pVfs, 1); }else{ fossil_fatal("no such VFS: \"%s\"", g.zVfsName); } } |
︙ | |||
2280 2281 2282 2283 2284 2285 2286 | 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 | - | noJail = find_option("nojail",0,0)!=0; allowRepoList = find_option("repolist",0,0)!=0; g.useLocalauth = find_option("localauth", 0, 0)!=0; g.sslNotAvailable = find_option("nossl", 0, 0)!=0; g.fNoHttpCompress = find_option("nocompress",0,0)!=0; zInFile = find_option("in",0,1); if( zInFile ){ |
︙ |
Changes to src/popen.c.
︙ | |||
91 92 93 94 95 96 97 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - + | si.hStdError = hErr; rc = CreateProcessW( NULL, /* Application Name */ zCmd, /* Command-line */ NULL, /* Process attributes */ NULL, /* Thread attributes */ TRUE, /* Inherit Handles */ |
︙ |