Plan 9 from Bell Labs’s /n/sources/patch/sorry/rc-restore-wdir-after-fork/files
/sys/src/cmd/rc/havefork.c havefork.c