Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 239733 Details for
Bug 300964
dev-db/postgresql-base-8.4.2-r1: libpq is not thread-safe when built with USE="threads"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Thread Safety Test Program
pg-thread-test.c (text/plain), 548 bytes, created by
Aaron W. Swenson
on 2010-07-21 22:10:20 UTC
(
hide
)
Description:
Thread Safety Test Program
Filename:
MIME Type:
Creator:
Aaron W. Swenson
Created:
2010-07-21 22:10:20 UTC
Size:
548 bytes
patch
obsolete
>/* > * Program to determine thread safety of PostgreSQL libraries. > * > * Save this file somewhere you can access it easily. You only need > * user level access. Also, it assumes that libpq-fe.h can be found in > * /usr/include/ > * > * Compile this program like so: > * yoursys $ gcc pg-thread-test.c -o pg-thread-test -I/usr/include/ -lpq > * > * Then run it: > * yoursys $ ./pg-thread-test > */ > >#include <stdio.h> >#include <libpq-fe.h> > >int main() >{ > if ( PQisthreadsafe() ) { > printf("It's safe.\n"); > } > else { > printf("It isn't safe!\n"); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 300964
: 239733