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