Mercurial > hg > orthanc
comparison OrthancFramework/Sources/SystemToolbox.cpp @ 4476:c1f36fd13730
migrate remaining links to issues in bitbucket to mercurial server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 26 Jan 2021 18:25:52 +0100 |
parents | d9473bd5ed43 |
children | 8a7523da6a9b |
comparison
equal
deleted
inserted
replaced
4475:a24d2126efd2 | 4476:c1f36fd13730 |
---|---|
500 #elif defined(__OpenBSD__) | 500 #elif defined(__OpenBSD__) |
501 static std::string GetPathToExecutableInternal() | 501 static std::string GetPathToExecutableInternal() |
502 { | 502 { |
503 // This is an adapted version of the patch proposed in issue #64 | 503 // This is an adapted version of the patch proposed in issue #64 |
504 // without an explicit call to "malloc()" to prevent memory leak | 504 // without an explicit call to "malloc()" to prevent memory leak |
505 // https://bitbucket.org/sjodogne/orthanc/issues/64/add-openbsd-support | 505 // https://bugs.orthanc-server.com/show_bug.cgi?id=64 |
506 // https://stackoverflow.com/q/31494901/881731 | 506 // https://stackoverflow.com/q/31494901/881731 |
507 | 507 |
508 const int mib[4] = { CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_ARGV }; | 508 const int mib[4] = { CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_ARGV }; |
509 | 509 |
510 size_t len; | 510 size_t len; |