diff options
author | Eric Wong <e@80x24.org> | 2021-01-10 12:15:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-12 03:51:43 +0000 |
commit | 3019046b3ab9736922762df111d60ef7647e36a3 (patch) | |
tree | 6cc7ec956a0c4e3b392367fa7bced25943dbc7b7 /lib/PublicInbox/Spawn.pm | |
parent | 7b79c918a5ea79f6adc380ca917b0353475ab29c (diff) | |
download | public-inbox-3019046b3ab9736922762df111d60ef7647e36a3.tar.gz |
It's easier to make the code more generic by transferring all four FDs (std(in|out|err) + socket) instead of omitting stdin. We'll be reading from stdin on some imports, and possibly outputting to stdout, so omitting stdin now would needlessly complicate things. The differences with IO::FDPass "1" code paths and the "4" code paths used by Inline::C and Socket::MsgHdr are far too much to support and test at the moment.
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r-- | lib/PublicInbox/Spawn.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index b35bf54c..ef822e1b 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -209,7 +209,7 @@ my $fdpass = <<'FDPASS'; #include <sys/socket.h> #if defined(CMSG_SPACE) && defined(CMSG_LEN) -#define SEND_FD_CAPA 3 +#define SEND_FD_CAPA 4 #define SEND_FD_SPACE (SEND_FD_CAPA * sizeof(int)) union my_cmsg { struct cmsghdr hdr; |