]> Cypherpunks repositories - gostls13.git/commit
syscall: fix a number of exec bugs on Plan 9
authorAnthony Martin <ality@pbrane.org>
Thu, 26 Apr 2012 09:59:13 +0000 (02:59 -0700)
committerAnthony Martin <ality@pbrane.org>
Thu, 26 Apr 2012 09:59:13 +0000 (02:59 -0700)
commit549162340690f77dc90a184b8f5ea260d8a16249
treeddc6247267ea8f1d1423d311a7fc097b8062b4e2
parent42aa9abae967b27582e1275793a841bd312d18f4
syscall: fix a number of exec bugs on Plan 9

1. Readdirnames was erroneously returning an
   empty slice on every invocation.

2. The logic for determining which files to
   close before exec was incorrect.  If the
   set of files to be kept open (provided by
   the caller) did not include the files
   opened at startup, those files would be
   accidentally closed.

I also cleaned up readdupdevice while I was
in the vicinity.

R=golang-dev, seed, rsc
CC=golang-dev
https://golang.org/cl/6016044
src/pkg/syscall/exec_plan9.go