From: ts Date: 2008-02-19T02:18:53+09:00 Subject: Re: File#flock with LOCK_SH causes Errno::EBADF on Solaris >>>>> "D" == Daniel Berger writes: D> Yes, that worked. Do Solaris and Linux have different rules regarding D> shared file locks? Or is that a bug? bug in Solaris, you want to say ? :-) EBADF The fildes argument is not a valid open file descrip- tor; or the cmd argument is F_SETLK, F_SETLK64, F_SETLKW, or F_SETLKW64, the type of lock, l_type, is a shared lock (F_RDLCK), and fildes is not a valid file descriptor open for reading; or the type of lock l_type is an exclusive lock (F_WRLCK) and fildes is not a valid file descriptor open for writing. Guy Decoux