mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
ZTS: change $(cat) to $(<) for speedup
It's better to use ksh/bash built in methods, rather than spawn new processes every time. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #8071
This commit is contained in:
committed by
Brian Behlendorf
parent
9553c533a6
commit
58aeb87a8f
@@ -3332,7 +3332,7 @@ function zed_stop
|
||||
|
||||
log_note "Stopping ZED"
|
||||
if [[ -f ${ZEDLET_DIR}/zed.pid ]]; then
|
||||
zedpid=$(cat ${ZEDLET_DIR}/zed.pid)
|
||||
zedpid=$(<${ZEDLET_DIR}/zed.pid)
|
||||
kill $zedpid
|
||||
while ps -p $zedpid > /dev/null; do
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user