Forum: PgBouncer 1.4.2

Posted by: Marko Kreen
Date: 2011-06-30 21:27
Summary:PgBouncer 1.4.2
Project:PgBouncer

Portability fixes. Affected OS-es: *BSD, Solaris, Win32.

Full details here:

http://pgfoundry.org/frs/shownotes.php?release_id=1863

Sponsors Ads

Latest News

PgBouncer 1.5.4

Marko Kreen - 2012-11-29 05:23 -

PgBouncer 1.5.3

Marko Kreen - 2012-09-13 06:37 -

PgBouncer 1.5.2

Marko Kreen - 2012-05-29 21:06 -

PgBouncer 1.5.1

Marko Kreen - 2012-04-17 13:44 -

PgBouncer 1.5

Marko Kreen - 2012-01-05 19:41 -
Monitor Forum | Start New Thread Start New Thread
win32 service hack [ reply ]
By: med bone on 2011-12-21 08:13
[forum:1015457]
hi,
i've built pgbouncer using msys, and noticed that it will not start as a service even after registration. (error 1067).
So i hacked through the code, and finally i noticed that i needed to change the code on the main.c function in order to have it work properly.

here what u have to do :

just add the preprocessor line #ifndef WIN32 and #endif around the setprogname(basename(argv[0]));
as shown below

<code>
#ifndef WIN32
setprogname(basename(argv[0]));
#endif
</code>

the problem resides actually in the basename function on file err.c

now it works pefrectly as a service.

hf

Powered By FusionForge