projects
/
openwrt
/
staging
/
stintel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
procd: update procd.sh to disallow signal-numbers, enforce signal-names
[openwrt/staging/stintel.git]
/
package
/
system
/
procd
/
files
/
procd.sh
diff --git
a/package/system/procd/files/procd.sh
b/package/system/procd/files/procd.sh
index 8f18cda70e65b7b33ff6029d8e3ac4e357bf411c..a1b9f2f0e9e0b5a4abb69dee4a0f3a70c141fc84 100644
(file)
--- a/
package/system/procd/files/procd.sh
+++ b/
package/system/procd/files/procd.sh
@@
-213,9
+213,12
@@
_procd_set_param() {
json_add_string "" "$@"
json_close_array
;;
- nice
|reload_signal
)
+ nice)
json_add_int "$type" "$1"
;;
+ reload_signal)
+ json_add_int "$type" $(kill -l "$1")
+ ;;
pidfile|user|seccomp|capabilities)
json_add_string "$type" "$1"
;;