diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-10-12 23:44:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-10-12 23:44:40 +0000 |
commit | e98583d0473c7dde6afbd97bc6e997147e485bba (patch) | |
tree | 9e1503d718477fa03c455e505f82037655850a12 /sys/compat/linux | |
parent | ac01df5dc866a446e17a8e4c61dbce6f36c6e192 (diff) |
Linux shmat allows lookup of segments that are marked as removed so
our Linux compat should too. From marius aamodt eriksen
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index 67bf034dd4c..03be16c7dbd 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ipc.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ +/* $OpenBSD: linux_ipc.c,v 1.9 2003/10/12 23:44:39 millert Exp $ */ /* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */ /* @@ -538,7 +538,7 @@ linux_shmat(p, v, retval) SCARG(&bsa, shmaddr) = SCARG(uap, ptr); SCARG(&bsa, shmflg) = SCARG(uap, a2); - if ((error = sys_shmat(p, &bsa, retval))) + if ((error = sys_shmat1(p, &bsa, retval, 1))) return error; if ((error = copyout(&retval[0], (caddr_t) SCARG(uap, a3), |