瀏覽代碼

Replacing "sleep 365d" with "sleep inf"

To get endless sleep, `sleep inf` (or `sleep infinity`) can be used
instead of `sleep 365d`. Coreutils' sleep accepts any floating-point
number as an argument, which may be 'infinity', according to
`man strtod`.
yaqu 8 年之前
父節點
當前提交
c63a9f6566
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      qubes-rpc/qubes.WaitForSession

+ 1 - 1
qubes-rpc/qubes.WaitForSession

@@ -1,2 +1,2 @@
 read USERNAME
-su -c 'echo $$ >> /tmp/qubes-session-waiter; [ ! -f /tmp/qubes-session-env ] && exec sleep 365d' - "$USERNAME" 2> /dev/null
+su -c 'echo $$ >> /tmp/qubes-session-waiter; [ ! -f /tmp/qubes-session-env ] && exec sleep inf' - "$USERNAME" 2> /dev/null