diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-05-05 06:28:11 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-05-05 10:11:05 +0200 |
commit | 78e54359372d02d17e9ab453c7bc0cd725b807f2 (patch) | |
tree | 4328eada04808a5ffe9297839ceb97cca7b10403 /sfeed_atom.1 | |
parent | f0ca847fca5100dd98fbbed9c49b08ba5f310ac5 (diff) |
sfeed_curses: close stdin for spawning a plumb program in non-interactive mode
This is only for plumbing in non-interactive mode in forkexec(), but not piping
content.
Probably obvious what the descriptors are, but also add a few comments to dup2
of the file descriptors (stdin, stdout, stderr).
To reproduce a behaviour:
Plumb script:
#!/bin/sh
dmenu
Then launch it:
SFEED_PLUMB_INTERACTIVE=0 SFEED_PLUMB=thescript sfeed_curses ~/.sfeed/feeds/*
The program now waits on input while in non-interactive mode and only seems to
hang.
After:
The program starts but just has no input passed to it.
Diffstat (limited to 'sfeed_atom.1')
0 files changed, 0 insertions, 0 deletions