installer: Fix process killing issue in installer.sh
authorAaron LI <aly@aaronly.me>
Sat, 16 May 2020 06:43:20 +0000 (14:43 +0800)
committerAaron LI <aly@aaronly.me>
Sat, 16 May 2020 06:43:20 +0000 (14:43 +0800)
commit469fd6066cfafcc63a1257c6abfcf7a864676854
tree0bada9d6b5db2988664d2f4cde65a524924f1708
parent04e94b32b029cd25e4d519cb800fbd623421da9a
installer: Fix process killing issue in installer.sh

The original way of obtaining PIDs is actually wrong, becuase it would
get the user of processes instead of the process ID.

Directly use killall(1) to fix the issue as well as clean the code.
usr.sbin/installer/installer/installer.sh