projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't allow process to attach to itself
[unix-history]
/
usr
/
src
/
sys
/
kern
/
subr_rmap.c.sav
diff --git
a/usr/src/sys/kern/subr_rmap.c.sav
b/usr/src/sys/kern/subr_rmap.c.sav
index
1bfb8d1
..
a98514d
100644
(file)
--- a/
usr/src/sys/kern/subr_rmap.c.sav
+++ b/
usr/src/sys/kern/subr_rmap.c.sav
@@
-1,9
+1,9
@@
/*
/*
- * Copyright (c) 1982 Regents of the University of California.
+ * Copyright (c) 1982
, 1986
Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)subr_rmap.c.sav
6.3
(Berkeley) %G%
+ * @(#)subr_rmap.c.sav
7.2
(Berkeley) %G%
*/
#include "param.h"
*/
#include "param.h"
@@
-326,7
+326,7
@@
rmget(mp, size, addr)
*/
for (bp2=bp; bp2->m_size; bp2++)
;
*/
for (bp2=bp; bp2->m_size; bp2++)
;
- if (bp2
=
= mp->m_limit)
+ if (bp2
+ 1 >
= mp->m_limit)
return (0);
while (bp2 > bp) {
(bp2+1)->m_addr = bp2->m_addr;
return (0);
while (bp2 > bp) {
(bp2+1)->m_addr = bp2->m_addr;