grimd34th / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Locking mintty terminal, possible? #347

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using pv can't lock terminal. Examples:

dd if=/dev/urandom of=random.data bs=20M count=1
pv -cN source random.data | gzip | pv -cN gzip > random.data.gz

Detailed here:
http://code.google.com/p/pipeviewer/issues/detail?id=4

There are compiled versions of pv on the internet.

Original issue reported on code.google.com by coldpizz...@gmail.com on 14 Jul 2012 at 11:21

GoogleCodeExporter commented 9 years ago
Looking at the pv source code, apparently it's this call this fails:

  fcntl(fd, F_SETLKW, &lock);

This indicates that the Cygwin DLL doesn't support file locking on terminal 
devices. The fact that it's the same in rxvt confirms that it isn't a 
mintty-specific issue. Please take this to the Cygwin mailing list.

Original comment by andy.koppe on 16 Jul 2012 at 12:33