From 7324b1e0849690f6ebb0249e9be2c38184f417ba Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 12 Aug 2023 02:10:26 +0200 Subject: [PATCH] Add note regarding the FIFO --- docs/docs.md | 4 ++++ spmenu.1 | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/docs/docs.md b/docs/docs.md index 94ca025..5b0fed9 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -750,6 +750,10 @@ You must append **without** a newline. Otherwise it will be considered invalid. It is recommended that you sleep for 0.1 seconds after appending to the file for performance reasons. +**NOTE: Please remove /tmp/spmenu.fifo if it exists after usage, especially in +scripts. Otherwise the FIFO action may be carried over to the user's next +spmenu use. If you love your users, do not ignore this warning.** + | Name | Description | | :----------------- | :-------------------------------------------------------------------------------- | | drawmenu | Draw the menu | diff --git a/spmenu.1 b/spmenu.1 index 1687e28..f811e36 100644 --- a/spmenu.1 +++ b/spmenu.1 @@ -874,6 +874,12 @@ Otherwise it will be considered invalid. It is recommended that you sleep for 0.1 seconds after appending to the file for performance reasons. .PP +\f[B]NOTE: Please remove /tmp/spmenu.fifo if it exists after usage, +especially in scripts. +Otherwise the FIFO action may be carried over to the user\[cq]s next +spmenu use. +If you love your users, do not ignore this warning.\f[R] +.PP .TS tab(@); lw(12.7n) lw(57.3n).