[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mntlib: problem with pipes



Michael Hohmuth writes:

>     # cat .cshrc | more
>     
>     Suspended (tty output)
>     [1] 35 36
>     # 
> 
> (This also happens with tcsh 6.04.)  The same thing works fine with tcsh 6.03
> + mntlib PL 30  (and has ever worked under every version of MiNT).
> 
> I don't know exactly which mntlib PL introduces the problem...

 eeks!

 Julian is your ps public yet? :)  i don't have tcsh but my ksh still
works when linked with pl > 30...  maybe something to do with your ttys
pgroup, is it still 0?  heres a simple test, preferably run from another
terminal... (with </dev/tcsh's.tty)

#include <stdio.h>
#include <ioctl.h>

main(argc,argv)
int argc;
char *argv[];
{
	int fd;
	char *f = "stdin";
	long pgrp;

	fd = 0;
	if (!(isatty(fd))) {
		if ((fd = open("U:\\dev\\tty",0)) < 0) {
			perror("can't open tty");
			exit(1);
		}
		f = "/dev/tty";
	}

	if (ioctl(fd,TIOCGPGRP,&pgrp)) {
		perror("can't do ioctl");
		exit(1);
	}

	printf("%s pgrp: %ld\n", f, pgrp);

	exit(0);
}
-- 
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
								...ohne Gewehr
PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA