mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
Merge pull request #1948 from babbaj/fix-sigpipe
restore sigpipe handler in plugin child processes
This commit is contained in:
commit
f762b3dc0c
|
@ -5529,6 +5529,9 @@ static bool run_plugin(char **path, const char *file, char *runfile, char **last
|
||||||
if (wfd == -1)
|
if (wfd == -1)
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
|
|
||||||
|
/* Restore sigpipe handler to default */
|
||||||
|
sigaction(SIGPIPE, &(struct sigaction){.sa_handler = SIG_DFL}, NULL);
|
||||||
|
|
||||||
if (!cmd_as_plugin) {
|
if (!cmd_as_plugin) {
|
||||||
char *sel = NULL;
|
char *sel = NULL;
|
||||||
char std[2] = "-";
|
char std[2] = "-";
|
||||||
|
|
Loading…
Reference in a new issue