<i>exec ">>" does "a"-style opening, not "APPEND"</i>.
by
.
D 2005-07-27T12:12:09
J assignee andreas_kupries
J cmimetype text/plain
J comment when\sI\sdo:\n\s\sexec\smyprog\s>>\slogfile\nthis\shappens:\n\n\s\s\sopen("logfile",\sO_WRONLY|O_CREAT|O_LARGEFILE,\s0666)\s=\s5\n\s\s\s_llseek(5,\s0,\s[0],\sSEEK_END)\s\s\s\s\s\s\s\s\s\s\s\s=\s0\n\nThis\sis\sjust\sa\sbad\sthing.\sEveryone\sused\sto\sshell-syntax\s\nexpects\sthe\sfile\sto\sbe\sopened\swith\sthe\s"O_APPEND"\sflag,\nsuch\sthat\stwo\sconcurrent\sprocesses\soutputting\sto\sthe\nsame\sfile\swill\snot\soverwrite\seach\sothers\soutput,\sbut\salways\nappend.\n
J foundin obsolete:\s8.5a3
J priority 5\sMedium
J resolution None
J status Open
J submitter avl42
J subsystem 25.\sChannel\sSystem
J title exec\s">>"\sdoes\s"a"-style\sopening,\snot\s"APPEND"
J type Bug
K 1245953fffffffffffffffffffffffffffffffff
U avl42
Z e2b6ba28611c5fa6e8732a9a9161e6d7