summaryrefslogtreecommitdiff
path: root/sys/src/cmd/nusb
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-11-22 02:39:57 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-11-22 02:39:57 +0100
commit98363cb27276b29ff3795d1ef93e4ea2e82e106f (patch)
treedf142a47c3c630e8f9915c15df2a893a37462877 /sys/src/cmd/nusb
parent38e1e5272fc9c66a00d702246813135452819ffe (diff)
devenv: fix ORCLOSE handling
when opening a /env file ORCLOSE, and the process exits, envgrp() would return nil can crash in envremove() because procexit will have set up->egrp to nil before calling closefgrp(). the solution is to capture the environment on open, keeping a reference in Chan.aux, so it doesnt matter on what process the close happens and a env chan will always refer to its original environment group.
Diffstat (limited to 'sys/src/cmd/nusb')
0 files changed, 0 insertions, 0 deletions