SMOLNET PORTAL home about changes
README: add setsid example - sfeed - RSS and Atom parser
(URL) git clone git://git.codemadness.org/sfeed (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0f2ddea7cfe31a651533cf170bc31627415db593
(DIR) parent 8737035999474283a28faa5780f43138f96ab82c
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Sat, 18 Jun 2022 22:52:44 +0200
README: add setsid example
Diffstat:
M README | 15 +++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -1109,6 +1109,21 @@ Example of a `syncnews.sh` shellscript to update the feeds and reload them:
pkill -SIGHUP sfeed_curses
+Running programs in a new session
+---------------------------------
+
+By default processes are spawned in the same session and process group as
+sfeed_curses. When sfeed_curses is closed this can also close the spawned
+process in some cases.
+
+When the setsid command-line program is available the following wrapper command
+can be used to run the program in a new session, for a plumb program:
+
+ setsid -f xdg-open "$@"
+
+Alternatively the code can be changed to call setsid() before execvp().
+
+
Open an URL directly in the same terminal
-----------------------------------------
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed/commit/0f2ddea7cfe31...
Content-Typeapplication/gopher-menu; charset=utf-8