summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/processor_bind.c
diff options
context:
space:
mode:
authormishra <none@none>2007-10-02 16:47:20 -0700
committermishra <none@none>2007-10-02 16:47:20 -0700
commitf1fa5dcf799749330b7bd6cdee34de6a17ea3fd4 (patch)
treed485e6524258c5af4de4346289e3c86ed73553e3 /usr/src/uts/common/syscall/processor_bind.c
parente0e0293ac229cd6d0db5217ec05fe61463aa00e2 (diff)
downloadillumos-joyent-f1fa5dcf799749330b7bd6cdee34de6a17ea3fd4.tar.gz
6489446 pbind gives wrong message when run on system processes
6608065 bug 6292092 mis-merged fix of bug 6317341
Diffstat (limited to 'usr/src/uts/common/syscall/processor_bind.c')
-rw-r--r--usr/src/uts/common/syscall/processor_bind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/syscall/processor_bind.c b/usr/src/uts/common/syscall/processor_bind.c
index bd416e43e6..129129d7d1 100644
--- a/usr/src/uts/common/syscall/processor_bind.c
+++ b/usr/src/uts/common/syscall/processor_bind.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -61,6 +61,7 @@ cpu_bind_process(proc_t *pp, processorid_t bind, processorid_t *obind,
/* skip kernel processes */
if (pp->p_flag & SSYS) {
*obind = PBIND_NONE;
+ *error = EPERM;
return (0);
}