diff options
author | 1995-12-27 06:14:48 +0000 | |
---|---|---|
committer | 1995-12-27 06:14:48 +0000 | |
commit | 8f86b7eacea154feb21edac0b469420c942e4b71 (patch) | |
tree | c023e539b754201ead431b1cf4bc5ddd1f3662a9 | |
parent | Only warn about non-kerberos protocol if kerberos has been configured with (diff) | |
download | wireguard-openbsd-8f86b7eacea154feb21edac0b469420c942e4b71.tar.xz wireguard-openbsd-8f86b7eacea154feb21edac0b469420c942e4b71.zip |
from netbsd; copy md_flags at fork time (fixes npx problems)
-rw-r--r-- | sys/arch/i386/i386/vm_machdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c index 2b4452abf56..9603b2b77fe 100644 --- a/sys/arch/i386/i386/vm_machdep.c +++ b/sys/arch/i386/i386/vm_machdep.c @@ -99,6 +99,8 @@ cpu_fork(p1, p2) npxsave(); #endif + p2->p_md.md_flags = p1->p_md.md_flags; + /* Sync curpcb (which is presumably p1's PCB) and copy it to p2. */ savectx(curpcb); *pcb = p1->p_addr->u_pcb; |