Tcl Source Code

Hex Artifact Content
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Artifact 3a4e4e651bb015cb5ab008b1cdc0cba5818d8d6d5b29ff323cf01583ca7429a6:

Ticket change [3a4e4e651b] - Ticket [270f78ca95] file mkdir: race condition if two workers creates same directory and one worker deletes it immediately status still Closed with 5 other changes by sebres 2018-07-11 00:22:24.
0000: 44 20 32 30 31 38 2d 30 37 2d 31 31 54 30 30 3a  D 2018-07-11T00:
0010: 32 32 3a 32 34 2e 33 35 32 0a 4a 20 63 6c 6f 73  22:24.352.J clos
0020: 65 64 61 74 65 20 32 34 35 38 33 31 30 2e 35 31  edate 2458310.51
0030: 35 35 35 39 36 33 0a 4a 20 63 6c 6f 73 65 72 20  555963.J closer 
0040: 73 65 62 72 65 73 0a 4a 20 69 63 6f 6d 6d 65 6e  sebres.J icommen
0050: 74 20 53 6f 5c 73 49 5c 73 61 73 73 75 6d 65 5c  t So\sI\sassume\
0060: 73 69 74 5c 73 77 6f 72 6b 73 5c 73 6e 6f 77 5c  sit\sworks\snow\
0070: 73 66 6f 72 5c 73 79 6f 75 5c 73 61 6c 73 6f 5c  sfor\syou\salso\
0080: 73 61 73 5c 73 72 65 67 61 72 64 73 5c 73 79 6f  sas\sregards\syo
0090: 75 72 5c 73 4e 46 53 5c 73 28 4e 41 53 5c 73 73  ur\sNFS\s(NAS\ss
00a0: 68 61 72 65 29 3f 5c 72 5c 6e 5c 72 5c 6e 42 75  hare)?\r\n\r\nBu
00b0: 74 5c 73 77 68 61 74 5c 73 49 5c 73 64 6f 6e 27  t\swhat\sI\sdon'
00c0: 74 5c 73 75 6e 64 65 72 73 74 61 6e 64 2c 5c 73  t\sunderstand,\s
00d0: 68 6f 77 5c 73 69 74 5c 73 63 61 6e 5c 73 66 61  how\sit\scan\sfa
00e0: 69 6c 5c 73 77 69 74 68 6f 75 74 5c 73 64 65 6c  il\swithout\sdel
00f0: 65 74 65 5c 73 61 74 5c 73 61 6c 6c 5c 73 28 65  ete\sat\sall\s(e
0100: 73 70 65 63 69 61 6c 6c 79 5c 73 77 69 74 68 5c  specially\swith\
0110: 73 45 45 58 49 53 54 5c 73 65 72 72 6f 72 5c 73  sEEXIST\serror\s
0120: 63 6f 64 65 29 2e 5c 72 5c 6e 50 6f 73 73 69 62  code).\r\nPossib
0130: 6c 79 5c 73 79 6f 75 5c 73 75 73 65 5c 73 73 6f  ly\syou\suse\sso
0140: 6d 65 74 68 69 6e 67 5c 73 6c 69 6b 65 5c 73 74  mething\slike\st
0150: 65 6d 70 6f 72 61 72 79 5c 73 66 6f 6c 64 65 72  emporary\sfolder
0160: 73 5c 73 28 6a 75 73 74 5c 73 77 69 74 68 5c 73  s\s(just\swith\s
0170: 72 61 6e 67 65 5c 73 6f 66 5c 73 74 68 65 5c 73  range\sof\sthe\s
0180: 73 61 6d 65 5c 73 6e 61 6d 65 73 29 3f 5c 73 53  same\snames)?\sS
0190: 6f 5c 73 69 74 5c 73 63 6f 75 6c 64 5c 73 62 65  o\sit\scould\sbe
01a0: 5c 73 64 65 6c 65 74 65 64 5c 73 28 61 66 74 65  \sdeleted\s(afte
01b0: 72 5c 73 77 6f 72 6b 5c 73 64 6f 6e 65 29 3f 5c  r\swork\sdone)?\
01c0: 72 5c 6e 49 6e 5c 73 63 61 73 65 5c 73 6c 69 6b  r\nIn\scase\slik
01d0: 65 5c 73 74 68 69 73 5c 73 49 5c 73 74 68 69 6e  e\sthis\sI\sthin
01e0: 6b 5c 73 74 6f 5c 73 72 65 73 6f 6c 76 65 5c 73  k\sto\sresolve\s
01f0: 73 75 63 68 5c 73 74 69 6d 65 2d 69 73 73 75 65  such\stime-issue
0200: 73 5c 73 28 61 6e 64 5c 73 74 68 65 79 5c 73 61  s\s(and\sthey\sa
0210: 72 65 5c 73 72 61 74 68 65 72 5c 73 61 5c 73 74  re\srather\sa\st
0220: 69 6d 65 2d 5c 73 61 73 5c 73 61 5c 73 72 61 63  ime-\sas\sa\srac
0230: 65 2d 63 6f 6e 64 69 74 69 6f 6e 5c 73 69 6e 64  e-condition\sind
0240: 69 72 65 63 74 6c 79 29 5c 73 79 6f 75 5c 73 73  irectly)\syou\ss
0250: 68 6f 75 6c 64 5c 73 70 6f 73 73 69 62 6c 79 5c  hould\spossibly\
0260: 73 61 64 64 5c 73 73 6f 6d 65 5c 73 62 75 73 69  sadd\ssome\sbusi
0270: 6e 65 73 73 5c 73 6c 6f 67 69 63 5c 73 28 65 2e  ness\slogic\s(e.
0280: 5c 73 67 2e 5c 73 77 69 74 68 5c 73 73 6f 6d 65  \sg.\swith\ssome
0290: 5c 73 74 69 6d 65 2d 63 6f 6d 70 6f 6e 65 6e 74  \stime-component
02a0: 5c 73 69 6e 5c 73 74 68 65 5c 73 6e 61 6d 65 5c  \sin\sthe\sname\
02b0: 73 6f 66 5c 73 74 68 65 5c 73 66 6f 6c 64 65 72  sof\sthe\sfolder
02c0: 29 5c 73 74 6f 5c 73 61 76 6f 69 64 5c 73 64 65  )\sto\savoid\sde
02d0: 6c 65 74 69 6e 67 5c 73 6f 66 5c 73 73 74 69 6c  leting\sof\sstil
02e0: 6c 5c 73 22 61 63 74 69 76 65 22 5c 73 64 69 72  l\s"active"\sdir
02f0: 65 63 74 6f 72 79 5c 73 28 61 73 5c 73 61 6c 72  ectory\s(as\salr
0300: 65 61 64 79 5c 73 73 61 69 64 5c 73 6c 69 6b 65  eady\ssaid\slike
0310: 5c 73 64 65 73 63 72 69 62 65 64 5c 73 69 6e 5c  \sdescribed\sin\
0320: 73 52 46 45 5c 73 5b 34 66 33 32 32 62 39 64 32  sRFE\s[4f322b9d2
0330: 31 5d 29 2e 5c 72 5c 6e 4e 6f 74 65 2c 5c 73 74  1]).\r\nNote,\st
0340: 68 61 74 5c 73 69 6e 5c 73 74 68 69 73 5c 73 63  hat\sin\sthis\sc
0350: 61 73 65 5c 73 62 6f 74 68 5c 73 63 72 65 61 74  ase\sboth\screat
0360: 65 72 2d 77 6f 72 6b 65 72 73 5c 73 77 69 6c 6c  er-workers\swill
0370: 5c 73 72 65 74 75 72 6e 5c 73 73 75 63 63 65 73  \sreturn\ssucces
0380: 73 66 75 6c 6c 79 2c 5c 73 62 75 74 5c 73 66 6f  sfully,\sbut\sfo
0390: 6c 64 65 72 5c 73 77 69 6c 6c 5c 73 62 65 5c 73  lder\swill\sbe\s
03a0: 6e 6f 74 5c 73 65 78 69 73 74 5c 73 28 62 65 63  not\sexist\s(bec
03b0: 61 75 73 65 5c 73 64 65 6c 65 74 65 64 29 5c 73  ause\sdeleted)\s
03c0: 73 6f 5c 73 79 6f 75 27 6c 6c 5c 73 67 65 74 5c  so\syou'll\sget\
03d0: 73 61 5c 73 63 6f 6e 73 65 71 75 65 6e 74 69 61  sa\sconsequentia
03e0: 6c 5c 73 65 72 72 6f 72 5c 73 6a 75 73 74 5c 73  l\serror\sjust\s
03f0: 6c 61 74 65 72 2e 5c 72 5c 6e 5c 72 5c 6e 41 6c  later.\r\n\r\nAl
0400: 73 6f 5c 73 6e 6f 74 65 5c 73 6f 6e 5c 73 4e 46  so\snote\son\sNF
0410: 53 5c 73 28 65 73 70 65 63 69 61 6c 6c 79 5c 73  S\s(especially\s
0420: 75 6e 64 65 72 5c 73 63 6f 6e 74 72 6f 6c 5c 73  under\scontrol\s
0430: 6f 66 5c 73 57 69 6e 64 6f 77 73 29 5c 73 74 68  of\sWindows)\sth
0440: 65 72 65 5c 73 61 72 65 5c 73 73 6f 6d 65 5c 73  ere\sare\ssome\s
0450: 72 75 64 65 5c 73 61 6e 74 69 76 69 72 75 73 5c  rude\santivirus\
0460: 73 6f 72 5c 73 6f 74 68 65 72 5c 73 49 44 53 2d  sor\sother\sIDS-
0470: 73 69 6d 69 6c 61 72 5c 73 73 6f 66 74 77 61 72  similar\ssoftwar
0480: 65 27 73 5c 73 28 63 6f 75 6c 64 5c 73 75 73 65  e's\s(could\suse
0490: 5c 73 71 75 61 72 61 6e 74 69 6e 65 2c 5c 73 77  \squarantine,\sw
04a0: 6f 72 6b 65 72 5c 73 73 75 73 70 65 6e 64 69 6e  orker\ssuspendin
04b0: 67 5c 73 61 6e 64 5c 73 63 6f 29 2c 5c 73 74 68  g\sand\sco),\sth
04c0: 61 74 5c 73 6d 61 79 5c 73 63 61 75 73 65 5c 73  at\smay\scause\s
04d0: 73 69 6d 69 6c 61 72 5c 73 65 72 72 6f 72 73 5c  similar\serrors\
04e0: 73 74 68 65 72 65 2e 0a 4a 20 6c 6f 67 69 6e 20  sthere..J login 
04f0: 73 65 62 72 65 73 0a 4a 20 6d 69 6d 65 74 79 70  sebres.J mimetyp
0500: 65 20 74 65 78 74 2f 78 2d 66 6f 73 73 69 6c 2d  e text/x-fossil-
0510: 77 69 6b 69 0a 4b 20 32 37 30 66 37 38 63 61 39  wiki.K 270f78ca9
0520: 35 62 36 34 32 66 62 65 64 38 31 65 64 30 33 61  5b642fbed81ed03a
0530: 64 33 38 31 64 36 34 61 30 64 30 66 37 64 66 0a  d381d64a0d0f7df.
0540: 55 20 73 65 62 72 65 73 0a 5a 20 61 63 32 65 61  U sebres.Z ac2ea
0550: 34 36 32 39 30 39 63 32 34 36 35 66 35 37 63 36  462909c2465f57c6
0560: 38 38 34 39 61 62 34 63 38 31 32 0a              8849ab4c812.