comparison OrthancFramework/Sources/SystemToolbox.cpp @ 5432:59e3b6f8c5be

migration to UCLouvain servers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 Nov 2023 18:16:31 +0100
parents 3206537cbb56
children 48b8dae6dc77
comparison
equal deleted inserted replaced
5431:4be5f117aa0d 5432:59e3b6f8c5be
518 #elif defined(__OpenBSD__) 518 #elif defined(__OpenBSD__)
519 static std::string GetPathToExecutableInternal() 519 static std::string GetPathToExecutableInternal()
520 { 520 {
521 // This is an adapted version of the patch proposed in issue #64 521 // This is an adapted version of the patch proposed in issue #64
522 // without an explicit call to "malloc()" to prevent memory leak 522 // without an explicit call to "malloc()" to prevent memory leak
523 // https://bugs.orthanc-server.com/show_bug.cgi?id=64 523 // https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=64
524 // https://stackoverflow.com/q/31494901/881731 524 // https://stackoverflow.com/q/31494901/881731
525 525
526 const int mib[4] = { CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_ARGV }; 526 const int mib[4] = { CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_ARGV };
527 527
528 size_t len; 528 size_t len;