On Wed, 18 Oct 2000, Tamas SZERB wrote:
> oops.c
>
> if ( fcntl(pid_d, F_SETLK, &fl) < 0 ) {
> my_xlog(LOG_SEVERE, "main(): Fatal: Can't lock pid
> file: %m\n");
> do_exit(1);
>
> here goes the oops off.
> printing these variables:
>
> errno=22
> pid_d=3 F_SETLK=13 fl=0.000000l
fl is structure, but in %d format I can't see values of fields.
here is code before this call:
bzero(&fl, sizeof(fl));
fl.l_type = F_WRLCK;
fl.l_whence = 0; fl.l_len = 0;
so, everything looks fine. But for sure need to see all fields if "fl"
ftructure.
What can I read from man fcntl on Solaris:
EINVAL cmd is F_GETLK, F_SETLK, or F_SETLKW and the
third argument or the data it points to is not
valid, or fildes refers to a file that does
not support locking.
> (printed in %d format)
>
> #define EINVAL 22 /* Invalid argument */
>
>
> EINVAL For F_DUPFD, arg is negative or is greater than
> the maximum allowable value. For F_SETSIG, arg
> is not an allowable signal number.
>
> Does it say You anything, Igor?
>
> --
> VWOL
> Tamas SZERB <[EMAIL PROTECTED]>
> GPG public key: http://alabama.inf.elte.hu/~toma/gpgkey.asc
> PGP public key: http://alabama.inf.elte.hu/~toma/pgpkey.asc
>
> =====================================================================
> If you would like to unsubscribe from this list send message to
> [EMAIL PROTECTED] with "unsubscribe oops-eng" in message body.
> Archive is accessible on http://www.paco.net/oops/
>
Igor Khasilev |
PACO Links, igor at paco dot net |
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops-eng" in message body.
Archive is accessible on http://www.paco.net/oops/