.
D 2000-10-26T01:09:14
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3871\sBug\nVersion:\s8.2\nSubmitDate:\s'1999-12-13'\nLastModified:\s'2000-04-25'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s3414\s4139\nOS:\sSolaris\nOSVersion:\sSolaris\s2.5.1\s,\s2.6\s,\s2.7\nFixedDate:\s'2000-04-25'\nFixedInVersion:\s8.3.1\nClosedDate:\s'2000-10-25'\n\n\nName:\nAmit\sKhivesara\n\nReproducibleScript:\nIn\sa\stcl\sprogram\sif\swe\sdo\sa\s::system("")\scommand\swhich\nstarts\sa\schild\swhich\sis\srun\sin\sthe\sbackground.\ne.g\s.::system("tail\s-f\s/etc/passwd&").\n\nThe\sprogram\swill\snot\sexit\ssince\sthe\sNotify\sThread\swill\snot\scome\sout\sof\sthe\sselect\sin\stclUnixNotify.c\n\nObservedBehavior:\nThis\sis\sbecause\sthe\spipe\sis\sclosed\sby\sthe\sother\sthread\nbut\sthe\sfork\sof\sthe\schild\sin\s::system\sstill\shas\sthe\sfile\ndescripter\sopen.\n\nDesiredBehavior:\nIt\sshould\sexit.\n\nPatchFiles:\nThe\sbug\sis\sin\stclUnixNotify.c\sin\smethod\sNotifierThreadProc.\n\s\s\s\sThe\sfds\sshould\sbe\sFD_CLOEXEC.\n\n\s\s\s\si.e.\s\n\s\s\s\s\s\s\sif\s(pipe(fds)\s!=\s0)\s{\n\s\s\s\s\s\s\s\spanic("NotifierThreadProc:\scould\snot\screate\strigger\spipe.");\n\s\s\s\s\s\s\s\s}\n\s\s\s\s/**\sLines\sadded\sare\sfor\sBUG!!!*/\n\s\s\s\s\s\s\s\sfcntl(fds[0],F_SETFD,FD_CLOEXEC);\n\s\s\s\s\s\s\s\sfcntl(fds[1],F_SETFD,FD_CLOEXEC);\n\n\n\nThis\sis\sthe\ssame\sproblem\sas\swas\snoted\sin\s4139,\sfixed\swith\sdifferent\nfix\s(sending\s'q'\sthrough\striggerPipe).\s\n--\s04/25/2000\shobbs
J foundin obsolete:\s8.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title tcl\swith\sthreads\swill\snot\sexit
J type Bug
K 219006ffffffffffffffffffffffffffffffffff
U nobody
Z c2e98e4cf7d9f7959495885fb8a7f40a