summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-06-18 22:52:44 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-06-18 22:52:44 +0200
commit0f2ddea7cfe31a651533cf170bc31627415db593 (patch)
tree7a417810d253f6102f11865a30781caf481a5126 /README
parent8737035999474283a28faa5780f43138f96ab82c (diff)
README: add setsid example
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 15 insertions, 0 deletions
diff --git a/README b/README
index ece2f28..06f2c02 100644
--- 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
-----------------------------------------