* [PATCH v3 0/6] Force pipes to flush immediately on NonStop platform
@ 2018-01-19 23:00 randall.s.becker
2018-01-19 23:02 ` Randall S. Becker
0 siblings, 1 reply; 2+ messages in thread
From: randall.s.becker @ 2018-01-19 23:00 UTC (permalink / raw)
To: git; +Cc: Randall S. Becker
From: "Randall S. Becker" <rsbecker@nexbridge.com>
* wrapper.c: called setbuf(stream,NULL) to force pipe flushes not
enabled by default on the NonStop platform. This applies only
to the NonStop platform guarded by #ifdef __TANDEM.
Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
---
wrapper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/wrapper.c b/wrapper.c
index d20356a77..671cbb4b4 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -403,6 +403,9 @@ FILE *xfdopen(int fd, const char *mode)
FILE *stream = fdopen(fd, mode);
if (stream == NULL)
die_errno("Out of memory? fdopen failed");
+#ifdef __TANDEM
+ setbuf(stream,NULL);
+#endif
return stream;
}
--
2.16.0.31.gf1a482c
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH v3 0/6] Force pipes to flush immediately on NonStop platform
2018-01-19 23:00 [PATCH v3 0/6] Force pipes to flush immediately on NonStop platform randall.s.becker
@ 2018-01-19 23:02 ` Randall S. Becker
0 siblings, 0 replies; 2+ messages in thread
From: Randall S. Becker @ 2018-01-19 23:02 UTC (permalink / raw)
To: git
> -----Original Message-----
> From: randall.s.becker@rogers.com [mailto:randall.s.becker@rogers.com]
> Sent: January 19, 2018 6:00 PM
> To: git@vger.kernel.org
> Cc: Randall S. Becker <rsbecker@nexbridge.com>
> Subject: [PATCH v3 0/6] Force pipes to flush immediately on NonStop
> platform
>
> From: "Randall S. Becker" <rsbecker@nexbridge.com>
>
> * wrapper.c: called setbuf(stream,NULL) to force pipe flushes not
> enabled by default on the NonStop platform. This applies only
> to the NonStop platform guarded by #ifdef __TANDEM.
>
> Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
> ---
> wrapper.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/wrapper.c b/wrapper.c
> index d20356a77..671cbb4b4 100644
> --- a/wrapper.c
> +++ b/wrapper.c
> @@ -403,6 +403,9 @@ FILE *xfdopen(int fd, const char *mode)
> FILE *stream = fdopen(fd, mode);
> if (stream == NULL)
> die_errno("Out of memory? fdopen failed");
> +#ifdef __TANDEM
> + setbuf(stream,NULL);
> +#endif
> return stream;
> }
>
> --
> 2.16.0.31.gf1a482c
This is a replacement for the v2 patch based on Stefan's suggestions.
Cheers,
Randall
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-19 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 23:00 [PATCH v3 0/6] Force pipes to flush immediately on NonStop platform randall.s.becker
2018-01-19 23:02 ` Randall S. Becker
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).