Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153850613
D14015.id38386.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1020 B
Referenced Files
None
Subscribers
None
D14015.id38386.diff
View Options
Index: head/etc/rc.subr
===================================================================
--- head/etc/rc.subr
+++ head/etc/rc.subr
@@ -775,6 +775,8 @@
#
# ${name}_login_class n Login class to use, else "daemon".
#
+# ${name}_limits n limits(1) to apply to ${command}.
+#
# ${rc_arg}_cmd n If set, use this as the method when invoked;
# Otherwise, use default command (see below)
#
@@ -952,7 +954,7 @@
_group=\$${name}_group _groups=\$${name}_groups \
_fib=\$${name}_fib _env=\$${name}_env \
_prepend=\$${name}_prepend _login_class=\${${name}_login_class:-daemon} \
- _oomprotect=\$${name}_oomprotect
+ _limits=\$${name}_limits _oomprotect=\$${name}_oomprotect
if [ -n "$_user" ]; then # unset $_user if running as that user
if [ "$_user" = "$(eval $IDCMD)" ]; then
@@ -1073,7 +1075,7 @@
fi
# Prepend default limits
- _doit="$_cd limits -C $_login_class $_doit"
+ _doit="$_cd limits -C $_login_class $_limits $_doit"
# run the full command
#
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 6:17 AM (16 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32030889
Default Alt Text
D14015.id38386.diff (1020 B)
Attached To
Mode
D14015: Allow to apply armitrary limits(1) to command
Attached
Detach File
Event Timeline
Log In to Comment