Cygwin is SLOW.
Bernard A Badger
bab@vx.com
Tue Jul 16 08:31:00 GMT 2002
Hmm. My Perl book (TYP21days) says that chmod needs write permission on
the ***file***, but I changed the script and it works anyway.
One last time, chm.pl:
$file = "test.file";
chmod ( 0000, ($file) ) || die "chmod ( 0000, (\"$file\") ): $!";
#-w $file || die "perl chmod will fail w/o write permission on $file\n";
$t = time;
while( $t == time ) {}
$t = time;
$secs = 5;
$stop = $t + $secs;
while( time < $stop ) {
chmod (0777, ($file) ) == 1 or die "blah, $!";
$n++;
}
print $n / $secs, " chmods per sec\n";
-w $file || die "test.file is not writeable: $!";
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list