Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Inappropriate ioctl for device

by pc88mxer (Vicar)
on Jul 21, 2008 at 15:42 UTC ( #699063=note: print w/ replies, xml ) Need Help??


in reply to Inappropriate ioctl for device

As almut says, this is nothing to worry about. If you carefully look at your strace output, you'll see that perl even performs a TCGETS ioctl on the your script file!

Perl makes other information gathering calls when it opens a file such as calling _llseek with whence set to SEEK_CUR. You might wonder why perl has to ask what the file position is if it just opened a file. It turns out that it's logically cleaner to always ask rather than assume.


Comment on Re: Inappropriate ioctl for device
Select or Download Code
Re^2: Inappropriate ioctl for device
by Anonymous Monk on Feb 17, 2012 at 18:11 UTC
    # Grab the first word... if ( $! =~ /Inappropriate/i ) { # Bug in perl 5.8.6... we're ignoring this message... (I +nappropriate ioctl for device) Warning... } else { print "System Message on Open --> $! \n" ; print "Not fatal if the file doesn't exist, because the open +will create the file...\n"; print "Continuing... \n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://699063]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-12-18 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls