Control: tags -1 patch
Control: retitle -1 Stalled SSH connections after existing initrd due to 
remaining dropbear children processes

To terminate all existing SSH sessions, it's somewhat cleaner to kill
all children before exiting the server.

Cheers,
-- 
Guilhem.
--- dropbear/dropbear	2015-06-01 03:27:45.946440539 +0200
+++ /tmp/dropbear	2015-06-16 01:21:55.167304668 +0200
@@ -19,5 +19,6 @@
 
 log_begin_msg "Stopping dropbear"
 
-kill `cat /var/run/dropbear.pid`
-
+pid=$(cat /var/run/dropbear.pid)
+ps -eo ppid,pid | sed -nr "s/^\s*$pid\s+([0-9]+)\s*$/\1/p" | xargs -r kill
+kill $pid

Attachment: signature.asc
Description: Digital signature

Reply via email to