restore sigpipe handler in plugin child processes

This commit is contained in:
Babbaj 2024-11-04 19:04:47 -05:00
parent 877d7c0687
commit b67c7d71e6
No known key found for this signature in database
GPG key ID: F044309848A07CAC

View file

@ -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] = "-";