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

Overview
Comment:adding flush to system-command, windows needs all buffers flushed before system execution
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | StvPrivateHook2
Files: files | file ages | folders
SHA1:a64b48cb2916d67bc0a061782c15b38536e29f20
User & Date: wolfgang 2010-10-19 14:55:50
Context
2010-10-23
07:23
added hook info to sync/push help check-in: ba5e0344 user: Ratte tags: StvPrivateHook2
2010-10-19
14:55
adding flush to system-command, windows needs all buffers flushed before system execution check-in: a64b48cb user: wolfgang tags: StvPrivateHook2
2010-10-18
19:40
some error corrections for force hook check-in: a94ef5c0 user: wolfgang tags: StvPrivateHook2
Changes

Changes to src/diffcmd.c.

33
34
35
36
37
38
39

40
41
42
43
44
45
46
int portable_system(const char *zOrigCmd){
  int rc;
#if defined(_WIN32)
  /* On windows, we have to put double-quotes around the entire command.
  ** Who knows why - this is just the way windows works.
  */
  char *zNewCmd = mprintf("\"%s\"", zOrigCmd);

  rc = system(zNewCmd);
  free(zNewCmd);
#else
  /* On unix, evaluate the command directly.
  */
  rc = system(zOrigCmd);
#endif 







>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
int portable_system(const char *zOrigCmd){
  int rc;
#if defined(_WIN32)
  /* On windows, we have to put double-quotes around the entire command.
  ** Who knows why - this is just the way windows works.
  */
  char *zNewCmd = mprintf("\"%s\"", zOrigCmd);
  fflush(0);
  rc = system(zNewCmd);
  free(zNewCmd);
#else
  /* On unix, evaluate the command directly.
  */
  rc = system(zOrigCmd);
#endif