~ubuntu-branches/ubuntu/trusty/log4shib/trusty

« back to all changes in this revision

Viewing changes to src/PThreads.cpp

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2013-06-23 15:01:10 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130623150110-6elr5il409pxrh0y
Tags: 1.0.7-1
* New upstream release.
  - Mark log sockets close-on-exec.
* Increase the buffer for the thread ID to handle platforms where a long
  is 64 bits.  This should hopefully fix the FTBFS on ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    namespace threading {
7
7
 
8
8
        std::string getThreadId() {
9
 
            char buffer[16];
10
 
            ::sprintf(buffer, "%ld", pthread_self());
 
9
            char buffer[32];
 
10
            ::sprintf(buffer, "%ld", (long) pthread_self());
11
11
            return std::string(buffer);     
12
12
        }
13
13