diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-05-02 13:38:06 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-05-02 13:38:06 +0000 |
| commit | 2801f27a60fe9fb98d06dadcdb0f3eb0d578786a (patch) | |
| tree | 82bae1b0a30aa3b0f070526f4d77dfc151235825 | |
| parent | c8cec6c17e3edb86ace67b37e97052a9ba0a8949 (diff) | |
| download | illumos-joyent-2801f27a60fe9fb98d06dadcdb0f3eb0d578786a.tar.gz | |
OS-2975 zone memory capper should set PR_RLC when controlling a process
| -rw-r--r-- | usr/src/cmd/zoneadmd/mcap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/cmd/zoneadmd/mcap.c b/usr/src/cmd/zoneadmd/mcap.c index cff1f7d67a..f841e63092 100644 --- a/usr/src/cmd/zoneadmd/mcap.c +++ b/usr/src/cmd/zoneadmd/mcap.c @@ -302,6 +302,11 @@ control_proc(pid_t pid) if ((ph = Pgrab(pid, 0, &res)) == NULL) return (NULL); + if (Psetflags(ph, PR_RLC) != 0) { + (void) Prelease(ph, 0); + return (NULL); + } + if (Pcreate_agent(ph) != 0) { (void) Prelease(ph, 0); return (NULL); |
