Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Should I worry about "Inappropriate ioctl for device"? (updated)

by dave_the_m (Monsignor)
on Aug 09, 2020 at 08:28 UTC ( #11120518=note: print w/replies, xml ) Need Help??


in reply to Re^4: Should I worry about "Inappropriate ioctl for device"? (updated)
in thread Should I worry about "Inappropriate ioctl for device"?

More likely still, some part of the C library is doing a terminal-related ioctl() system call on one of the standard filehandles like STDIN, finding that its not in fact a terminal (e.g. because STDIN hs been redirected) and safely ignoring the harmless error. I.e. the C library logic is along the lines of "if this file handle is a terminal do some extra initialisation, otherwise don't worry about it".

I used to see this on Solaris all the time when doing a truss(1); I don't see it on linux though.

Dave.

  • Comment on Re^5: Should I worry about "Inappropriate ioctl for device"? (updated)

Replies are listed 'Best First'.
Re^6: Should I worry about "Inappropriate ioctl for device"? (updated)
by dave_the_m (Monsignor) on Aug 09, 2020 at 08:35 UTC
    Updating myself: I can see it on linux too: an ioctl(fh, TCGETS) system call is being done on each file handle that gets opened.

    Dave.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2020-10-20 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (208 votes). Check out past polls.

    Notices?