in reply to Re: write to /dev/full does not fail
in thread write to /dev/full does not fail
I expect Perl die when the print fails, at least when autoflush is on.# this not dies perl -e '$|++; open FH, ">", "/dev/full" or die $!; print FH "line\n" + or die $!; ' # while this dies on close perl -e 'open FH, ">", "/dev/full"; print FH "line\n" ;close FH or di +e $! ' No space left on device at -e line 1. # interestingly (?) sysopen die on write, may it knows about /dev/full +? perl -e 'sysopen (FH, "/dev/full", O_WRONLY) ; print FH "line\n" or d +ie $!;close FH ' Bad file descriptor at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: write to /dev/full does not fail
by choroba (Cardinal) on May 23, 2014 at 07:48 UTC | |
by Discipulus (Canon) on May 23, 2014 at 07:57 UTC | |
by kschwab (Vicar) on May 23, 2014 at 16:34 UTC | |
|
Re^3: write to /dev/full does not fail
by kschwab (Vicar) on May 23, 2014 at 16:37 UTC |