zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: hanging FIFO test
@ 2000-02-21 18:19 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2000-02-21 18:19 UTC (permalink / raw)
  To: zsh-workers

I'm told that in some situations, opening a FIFO read-only
can cause a hang.  I have no idea why.  This should circumvent
the problem.

Index: configure.in
===================================================================
RCS file: /cvs/zsh/zsh/configure.in,v
retrieving revision 1.1.1.60
diff -u -r1.1.1.60 configure.in
--- configure.in	2000/02/14 00:19:18	1.1.1.60
+++ configure.in	2000/02/21 17:46:37
@@ -1140,7 +1140,7 @@
     if(pid < 0)
 	exit(1);
     if(pid) {
-	fd = open("/tmp/fifo$$", O_RDONLY);
+	fd = open("/tmp/fifo$$", O_RDWR);
 	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
     }
     fd = open("/tmp/fifo$$", O_WRONLY);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-21 18:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-21 18:19 PATCH: hanging FIFO test Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).