Forum: PgBouncer 1.4.2
Posted by: Marko Kreen Full details here: http://pgfoundry.org/frs/shownotes.php?release_id=1863
|
Latest News |
Monitor Forum | | 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 |
|

