projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a661ca
)
Oops, fix last commit.
author
Bruno Haible
<bruno@clisp.org>
Sun, 23 Aug 2009 11:10:40 +0000
(13:10 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Sun, 23 Aug 2009 11:10:40 +0000
(13:10 +0200)
lib/pipe2.c
patch
|
blob
|
history
diff --git
a/lib/pipe2.c
b/lib/pipe2.c
index 805c3f560f1cec85a64b9eb232e4c60ddce87c6d..726813f9af5fc4e54c217ff9b87af84d5e21e41a 100644
(file)
--- a/
lib/pipe2.c
+++ b/
lib/pipe2.c
@@
-89,9
+89,15
@@
pipe2 (int fd[2], int flags)
#if O_BINARY
if (flags & O_BINARY)
- setmode (fd, O_BINARY);
+ {
+ setmode (fd[1], O_BINARY);
+ setmode (fd[0], O_BINARY);
+ }
else if (flags & O_TEXT)
- setmode (fd, O_TEXT);
+ {
+ setmode (fd[1], O_TEXT);
+ setmode (fd[0], O_TEXT);
+ }
#endif
return 0;