Tcl Source Code

Artifact [595ee94dbc]
Login

Artifact 595ee94dbc0929820759ded314162e38ecc7395b:

Ticket change [595ee94dbc] - Ticket [ef34dd2457] fileevent writable starves bgerror status still Open with 3 other changes by pooryorick 2013-11-14 20:58:19.
D 2013-11-14T20:58:19.052
J comment In\sthe\scode\sbelow,\sboth\sthe\sreadable\sand\swritable\sevent\sscripts\sare\sexecuted,\sbut\sbgerror\snever\sruns\sbecause\sthe\squeue\sis\sdominated\sby\sthe\sfileevent\sevents.\r\n\r\n----\r\n\r\n#!\s/bin/env\stclsh\r\n\r\nproc\shandler\s{arg}\s{\r\n\s\s\s\sreturn\s-code\serror\s"an\serror!"\r\n}\r\n\r\nlassign\s[chan\spipe]\spipeout\spipein\r\nset\sstdout\s[open\s|[list\secho\shello]]\r\nfileevent\s$pipein\swritable\s{apply\s{{}\s{}}}\r\nfileevent\s$stdout\sreadable\s[list\shandler\s$stdout]\r\n\r\nvwait\sexit
J login pooryorick
J mimetype text/plain
K ef34dd2457472b08cf6a42a7c8c26329e2cae715
U pooryorick
Z bb24bb9c66da83ff4269fdf930fb5555