mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 00:02:44 +00:00
Make sure process isn't swapped when messing with it.
Added missing newline to log() call.
This commit is contained in:
parent
38aa9fc375
commit
59a9ecebb5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6569
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: procfs_ctl.c,v 1.2 1994/08/02 07:45:10 davidg Exp $
|
||||
* $Id: procfs_ctl.c,v 1.3 1994/12/31 12:26:50 ache Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -137,6 +137,7 @@ procfs_control(curp, p, op)
|
||||
* Stop the target.
|
||||
*/
|
||||
p->p_flag |= P_TRACED;
|
||||
faultin(p);
|
||||
p->p_xstat = 0; /* XXX ? */
|
||||
if (p->p_pptr != curp) {
|
||||
p->p_oppid = p->p_pptr->p_pid;
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: procfs_vfsops.c,v 1.5 1994/09/21 03:47:06 wollman Exp $
|
||||
* $Id: procfs_vfsops.c,v 1.6 1994/10/10 07:55:39 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -73,7 +73,7 @@ procfs_mount(mp, path, data, ndp, p)
|
||||
u_int size;
|
||||
|
||||
if (UIO_MX & (UIO_MX-1)) {
|
||||
log(LOG_ERR, "procfs: invalid directory entry size");
|
||||
log(LOG_ERR, "procfs: invalid directory entry size\n");
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: procfs_ctl.c,v 1.2 1994/08/02 07:45:10 davidg Exp $
|
||||
* $Id: procfs_ctl.c,v 1.3 1994/12/31 12:26:50 ache Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -137,6 +137,7 @@ procfs_control(curp, p, op)
|
||||
* Stop the target.
|
||||
*/
|
||||
p->p_flag |= P_TRACED;
|
||||
faultin(p);
|
||||
p->p_xstat = 0; /* XXX ? */
|
||||
if (p->p_pptr != curp) {
|
||||
p->p_oppid = p->p_pptr->p_pid;
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: procfs_vfsops.c,v 1.5 1994/09/21 03:47:06 wollman Exp $
|
||||
* $Id: procfs_vfsops.c,v 1.6 1994/10/10 07:55:39 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -73,7 +73,7 @@ procfs_mount(mp, path, data, ndp, p)
|
||||
u_int size;
|
||||
|
||||
if (UIO_MX & (UIO_MX-1)) {
|
||||
log(LOG_ERR, "procfs: invalid directory entry size");
|
||||
log(LOG_ERR, "procfs: invalid directory entry size\n");
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user