]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
OSX is different from Linux
authorAlan T. DeKok <aland@freeradius.org>
Mon, 2 Dec 2019 16:19:22 +0000 (11:19 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Dec 2019 00:33:25 +0000 (19:33 -0500)
We shouldn't say "debugger attached" if there's no debugger
attached.

src/lib/util/debug.c

index 61ce4259ba792758b2ac642fd16df5207431d6dd..b2f82a489b32634b2667f34da41327b93e765e46 100644 (file)
@@ -347,7 +347,11 @@ DIAG_ON(deprecated-declarations)
                 *      a SIGKILL.
                 */
 
-               if (_PTRACE(flags, ppid) == 0) {
+               if ((_PTRACE(flags, ppid) == 0)
+#ifdef __APPLE__
+                   || (errno == EPERM)
+#endif
+                   ) {
                        /* Wait for the parent to stop */
                        waitpid(ppid, NULL, 0);