.
D 2007-04-10T03:33:20
J icomment Logged\sIn:\sYES\s\nuser_id=75003\nOriginator:\sNO\n\nGiven\sthat\sthere\sis\sa\sbacktrace\sdoes\sthis\smean\sthat\sthe\score\scrashed\s?\n\nI\sthought\sthat\sa\sSIGPIPE\ssimply\scauses\sa\sTcl\serror\sto\sbe\sthrown,\ssomething\swhich\scan\sbe\scaught\s?\sAlthough,\sI\shave\sseen\sthat\sonly\sfor\sactual\spipes\si.e.\s'tclsh\s...\s|\s...'\sand\sthe\ssigpipe\shappens\swhen\sthe\sconsumer\sexists\sbefore\sthe\stclsh,\spulling\sthe\srug\sout\sunder\stclsh.\n\nWhat\sdoes\sSIGPIPE\smeans\sfor\sa\ssocket\sconnection\s?\s...\sOk,\sgoogle\s(sigpipe,\ssocket)\sdelivers\s<<http://docs.hp.com/en/32650-90372/ch02s14.html>>,\squoting:\n\n\s\s\s\sA\sSIGPIPE\sis\sgenerated\swhen\sa\ssend\soperation\sis\sattempted\son\sa\sbroken\ssocket.\n\s\s\s\sOne\sway\sof\sbreaking\sa\ssocket\sis\sto\sdo\sa\sshutdown(,2)\son\sa\ssocket.\n\nThat\sis\sthe\ssame\ssemantics\sas\sfor\sactual\spipes,\sso\sI\sguess\sthat\swe\sshould\sbehave\sin\sthe\ssame\swat,\sthrow\sa\sTcl\serror.\n\nSo\swe\ssimply\smight\shave\sto\scatch\sthe\ssigpipe\sand\sthrow\sas\stcl\serrors,\sas\swe\sdo\sfor\sregular\spipes.\s...\sThe\srelevant\sfiles\sfor\sthat\sseem\sto\sbe\s"tclUnixInit.c"\sand\s"tclUnixPipe.c",\sjust\slook\sfor\s'SIGPIPE'.\s...\sHm.\sThe\scode\sin\sUnixInit\sdoes\sa\sglobal\sSIG_IGN\sfor\sthis\ssignal,\sto\signore\sit,\sso\sthis\sshould\sapply\sto\ssockets\sas\swell!\n\nWhich\sof\sthe\stest\scases\sin\shttp.test\sis\sactually\sbreaking\s?\nCould\sit\sbe\sthat\sgdb\soverrides\sour\shandling\sof\ssigpipe\s?\nIn\sthat\scase\sthe\s'crash'\smight\ssimply\san\sartifact\sof\sexecution\sunder\sgdb\sand\snot\san\sactual\sbug.\n\n\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 1696642fffffffffffffffffffffffffffffffff
U andreas_kupries
Z c23876d1711a77244584cf292fa65c00