Alfred Perlstein <[EMAIL PROTECTED]> writes: > Of course not, the size of the struct changed (short->unsigned > long, basically int16_t -> uint32_t), because the kernel and userland > in Linux are hardly in sync you have the fun of guessing if you > get: > old struct -> old syscall (ok) > new struct -> old syscall (boom) > old struct -> new syscall (boom) > new struct -> new syscall (ok) Ugh. However, it looks like it might be fairly fail-soft: if we have the wrong declaration then we pick up some other field of the struct, and probably end up complaining because nattch appears nonzero. Recovery method (clean up the shm seg or delete lockfile) is the same. I'm still inclined to go with this; it beats corrupting the WAL log, and the fcntl(SETLK) alternative has its own set of portability booby-traps. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Tom Lane
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Cyril VELTER
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Peter Eisentraut
- Re: [HACKERS] How to shoot yourself in the foot: kil... Lamar Owen
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Tom Lane
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Tom Lane
- Re: [HACKERS] How to shoot yourself in the foot: kil... Nathan Myers
- Re: [HACKERS] How to shoot yourself in the foot: kil... Lamar Owen
- Re: [HACKERS] How to shoot yourself in the foot: kil... Alfred Perlstein
- Re: [HACKERS] How to shoot yourself in the foot: kil... Lamar Owen
- Re: [HACKERS] Red Hat bashing Nathan Myers
- Re: [HACKERS] Red Hat bashing Lamar Owen
- Re: [HACKERS] How to shoot yourself in the foot: kil... Samuel Sieb
- Re: [HACKERS] How to shoot yourself in the foot: kil... Trond Eivind Glomsrød
- Re: [HACKERS] How to shoot yourself in the foot: kil... Trond Eivind Glomsrød
- RE: [HACKERS] How to shoot yourself in the foot: kil... Hiroshi Inoue