public
Fork of FooBarWidget/passenger
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/harrisj/passenger.git
Modified pid printing to not produce type warnings on Solaris compiles 
(thanks Hongli!)
harrisj (author)
Sun Jun 22 19:12:21 -0700 2008
commit  7ed1bef9b6a97b94423b73b76bf2cb49935b9e23
tree    557370f450413739a26522e4c0dff70bfcbdf24a
parent  ea6bcf8a64b8b99f8b3de0617c437078b3bc3f68
...
509
510
511
512
513
 
 
514
515
516
...
509
510
511
 
 
512
513
514
515
516
0
@@ -509,8 +509,8 @@ private:
0
     char filename[PATH_MAX];
0
     int ret;
0
     
0
- snprintf(filename, sizeof(filename), "/tmp/passenger_status.%d.fifo",
0
- getpid());
0
+ snprintf(filename, sizeof(filename), "/tmp/passenger_status.%lu.fifo",
0
+ (unsigned long) getpid());
0
     filename[PATH_MAX - 1] = '\0';
0
     do {
0
       ret = mkfifo(filename, S_IRUSR | S_IWUSR);
...
248
249
250
251
252
 
 
 
 
253
254
255
...
248
249
250
 
 
251
252
253
254
255
256
257
0
@@ -248,8 +248,10 @@ private:
0
         AppContainer *container = lit->get();
0
         char buf[128];
0
         
0
- snprintf(buf, sizeof(buf), "PID: %-8d Sessions: %d",
0
- container->app->getPid(), container->sessions);
0
+ snprintf(buf, sizeof(buf),
0
+ "PID: %-8lu Sessions: %d",
0
+ (unsigned long) container->app->getPid(),
0
+ container->sessions);
0
         result << " " << buf << endl;
0
       }
0
       result << endl;

Comments

    No one has commented yet.