lkml.org 
[lkml]   [2023]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] /proc/sysrq-trigger can now pause processing for one second
From
On 18. 12. 23, 12:42, Tomas Mudrunka wrote:
> Writing ',' to /proc/sysrq-trigger now causes processing to
> pause for one second.
>
> This is useful, because recently accepted patch allows
> to write multiple keys at once to /proc/sysrq-trigger.
> But it might be desirable to add slight delay between actions.
>
> Eg. between (e)TERM and (i)KILL it makes sense to put slight delay,
> so processes have chance to run TERM handlers before being KILLed.
>
> Now we can send TERM, wait for two seconds and KILL like this:
>
> echo _e,,i > /proc/sysrq-trigger

Bah, what's wrong with:
echo e > /proc/sysrq-trigger
sleep 2
echo i > /proc/sysrq-trigger
?

thanks,
--
js
suse labs


\
 
 \ /
  Last update: 2023-12-18 13:06    [W:0.045 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site