{"thread":{"id":"47648","subject":"[PATCH v3 0/6] Force pipes to flush immediately on NonStop platform","startedAt":"2018-01-19T23:00:32Z","lastAt":"2018-01-19T23:02:54Z","messageCount":2,"participants":["randall.s.becker@rogers.com","Randall S. Becker"],"isPatch":true,"patchVersion":3,"patchTotal":6},"messages":[{"id":"336953","messageId":"20180119230010.8544-1-randall.s.becker@rogers.com","threadId":"47648","inReplyTo":null,"subject":"[PATCH v3 0/6] Force pipes to flush immediately on NonStop platform","fromName":"","fromEmail":"randall.s.becker@rogers.com","sentAt":"2018-01-19T23:00:10Z","receivedAt":"2018-01-19T23:00:32Z","isPatch":true,"sender":{"key":"randall.s.becker@rogers.com","avatar":null},"body":"From: \"Randall S. Becker\" <rsbecker@nexbridge.com>\n\n* wrapper.c: called setbuf(stream,NULL) to force pipe flushes not\n  enabled by default on the NonStop platform. This applies only\n  to the NonStop platform guarded by #ifdef __TANDEM.\n\nSigned-off-by: Randall S. Becker <rsbecker@nexbridge.com>\n---\n wrapper.c | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/wrapper.c b/wrapper.c\nindex d20356a77..671cbb4b4 100644\n--- a/wrapper.c\n+++ b/wrapper.c\n@@ -403,6 +403,9 @@ FILE *xfdopen(int fd, const char *mode)\n \tFILE *stream = fdopen(fd, mode);\n \tif (stream == NULL)\n \t\tdie_errno(\"Out of memory? fdopen failed\");\n+#ifdef __TANDEM\n+\tsetbuf(stream,NULL);\n+#endif\n \treturn stream;\n }\n \n-- \n2.16.0.31.gf1a482c\n\n"},{"id":"336954","messageId":"001501d39179$9f8fd430$deaf7c90$@nexbridge.com","threadId":"47648","inReplyTo":"20180119230010.8544-1-randall.s.becker@rogers.com","subject":"RE: [PATCH v3 0/6] Force pipes to flush immediately on NonStop platform","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2018-01-19T23:02:42Z","receivedAt":"2018-01-19T23:02:54Z","isPatch":true,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"> -----Original Message-----\n> From: randall.s.becker@rogers.com [mailto:randall.s.becker@rogers.com]\n> Sent: January 19, 2018 6:00 PM\n> To: git@vger.kernel.org\n> Cc: Randall S. Becker <rsbecker@nexbridge.com>\n> Subject: [PATCH v3 0/6] Force pipes to flush immediately on NonStop\n> platform\n> \n> From: \"Randall S. Becker\" <rsbecker@nexbridge.com>\n> \n> * wrapper.c: called setbuf(stream,NULL) to force pipe flushes not\n>   enabled by default on the NonStop platform. This applies only\n>   to the NonStop platform guarded by #ifdef __TANDEM.\n> \n> Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>\n> ---\n>  wrapper.c | 3 +++\n>  1 file changed, 3 insertions(+)\n> \n> diff --git a/wrapper.c b/wrapper.c\n> index d20356a77..671cbb4b4 100644\n> --- a/wrapper.c\n> +++ b/wrapper.c\n> @@ -403,6 +403,9 @@ FILE *xfdopen(int fd, const char *mode)\n>  \tFILE *stream = fdopen(fd, mode);\n>  \tif (stream == NULL)\n>  \t\tdie_errno(\"Out of memory? fdopen failed\");\n> +#ifdef __TANDEM\n> +\tsetbuf(stream,NULL);\n> +#endif\n>  \treturn stream;\n>  }\n> \n> --\n> 2.16.0.31.gf1a482c\n\nThis is a replacement for the v2 patch based on Stefan's suggestions.\nCheers,\nRandall\n\n"}]}