Back in September when I wrote ts, I added TOYFLAG_MAYFORK in the flags,
this patch removes that.
TOYFLAG_LINEBUF for ts makes sense, the main use case for ts is creating
log files for daemons (foobard | ts | tee logfile). If something happens
(Kernel Panic, Power Off, SIGKILL, etc) It should keep previously outputted
lines.
Instead of losing them in the output buffer
- Oliver Webb <[email protected]>
From c41c45610f55e237195b770e8f487a18b361d6b8 Mon Sep 17 00:00:00 2001
From: Oliver Webb <[email protected]>
Date: Mon, 19 Feb 2024 12:53:53 -0600
Subject: [PATCH] ts, remove MAYFORK, add in LINEBUF
---
toys/other/ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/other/ts.c b/toys/other/ts.c
index 553af7d6..f41bbf19 100644
--- a/toys/other/ts.c
+++ b/toys/other/ts.c
@@ -4,7 +4,7 @@
*
* No standard.
-USE_TS(NEWTOY(ts, "ims", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_MAYFORK))
+USE_TS(NEWTOY(ts, "ims", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_LINEBUF))
config TS
bool "ts"
--
2.43.2
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net