summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 17e18b2..33a0764 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -428,7 +428,7 @@ interpret:
oldprocsig = p->p_procsig;
PROC_UNLOCK(p);
MALLOC(newprocsig, struct procsig *, sizeof(struct procsig),
- M_SUBPROC, M_WAITOK);
+ M_SUBPROC, 0);
bcopy(oldprocsig, newprocsig, sizeof(*newprocsig));
newprocsig->ps_refcnt = 1;
oldprocsig->ps_refcnt--;
@@ -1174,7 +1174,7 @@ exec_register(execsw_arg)
if (execsw)
for (es = execsw; *es; es++)
count++;
- newexecsw = malloc(count * sizeof(*es), M_TEMP, M_WAITOK);
+ newexecsw = malloc(count * sizeof(*es), M_TEMP, 0);
if (newexecsw == NULL)
return (ENOMEM);
xs = newexecsw;
@@ -1208,7 +1208,7 @@ exec_unregister(execsw_arg)
for (es = execsw; *es; es++)
if (*es != execsw_arg)
count++;
- newexecsw = malloc(count * sizeof(*es), M_TEMP, M_WAITOK);
+ newexecsw = malloc(count * sizeof(*es), M_TEMP, 0);
if (newexecsw == NULL)
return (ENOMEM);
xs = newexecsw;
OpenPOWER on IntegriCloud