New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sysopen (to create a lockfile) fails with inappropriate ioctl for device #9612
Comments
From mpyne@purinchu.netCreated by mpyne@purinchu.netWhen running a script that I write (kdesvn-build) I noticed that a recent use strict; my $file = '.lockfile'; $! = 0; --------------------------------- strace output (partial): ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff565581b0) = -1 ENOTTY (Inappropriate ioctl for device) --------------------------------- I've tried different combinations of flags to sysopen() (O_RDWR instead of One thing I've noted is that exporting PERLIO=:stdio before running the script I've downloaded the 5.8.8 source code and browsed through but I can't find My Googling around seems to indicate that the problem is still present for I have a debug-enabled build of perl now so I'm standing by to assist as Perl Info
|
From ben@morrow.me.ukQuoth mpyne@purinchu.net:
This is not a bug. $! only has a useful value after a syscall has Ben |
The RT System itself - Status changed from 'new' to 'open' |
From @dcollinsnFrom perldoc perlvar: Many system or library calls set errno if they fail, to indicate the cause of failure. They usually do not set errno to zero if they succeed. This means errno , hence $! , is meaningful only immediately after a failure: Further details in the docs. sysopen() indicates failure by returning undef. If it does not return undef, $! is meaningless. Closing rejected notabug. -- |
@dcollinsn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#61964 (status was 'rejected')
Searchable as RT61964$
The text was updated successfully, but these errors were encountered: