summaryrefslogtreecommitdiff
path: root/mcon/U/d_eofpipe.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/d_eofpipe.U')
-rw-r--r--mcon/U/d_eofpipe.U11
1 files changed, 6 insertions, 5 deletions
diff --git a/mcon/U/d_eofpipe.U b/mcon/U/d_eofpipe.U
index 7f77c08..86b30a5 100644
--- a/mcon/U/d_eofpipe.U
+++ b/mcon/U/d_eofpipe.U
@@ -1,12 +1,12 @@
-?RCS: $Id: d_eofpipe.U,v 3.0.1.1 1994/10/29 16:12:40 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: d_eofpipe.U,v $
?RCS: Revision 3.0.1.1 1994/10/29 16:12:40 ram
@@ -30,13 +30,14 @@
?C:.
?H:#$d_eofpipe EOFPIPE /**/
?H:.
+?F:!mpipe
: see if pipe correctly gives the EOF condition
echo " "
case "$d_eofpipe" in
'')
echo "Let's see if your pipes return EOF to select() upon closing..." >&4
$cat >pipe.c <<'EOP'
-main()
+int main()
{
int pd[2];
int mask;
@@ -58,7 +59,7 @@ main()
exit(1);
}
EOP
- if $cc $ccflags pipe.c -o pipe $libs >/dev/null 2>&1; then
+ if $cc $ccflags -o pipe pipe.c $libs >/dev/null 2>&1; then
?X: Use a script to avoid the possible 'alarm call' message
echo "./pipe || exit 1" > mpipe
chmod +x mpipe