-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding rosmon to all arch * Update vinca_linux_64.yaml * Update vinca_linux_64.yaml * patch rosmon-core to compile against old kernel headers * Adding dependencies to vinca.yaml * remove rosmon from all arch except linux64 Co-authored-by: Tobias Fischer <[email protected]>
- Loading branch information
1 parent
8224ae4
commit 2b78a02
Showing
5 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/monitor/shim.cpp b/src/monitor/shim.cpp | ||
index 7dec1cc..da51913 100644 | ||
--- a/src/monitor/shim.cpp | ||
+++ b/src/monitor/shim.cpp | ||
@@ -15,6 +15,19 @@ | ||
#include <sys/resource.h> | ||
#include <sys/prctl.h> | ||
|
||
+// **NOTE: Adapted from https://reviews.llvm.org/D39717 ** | ||
+// Sufficiently old kernel headers don't provide this value, but we can still | ||
+// call prctl with it. If the runtime kernel is new enough, the prctl call will | ||
+// have the desired effect; if the kernel is too old, the call will error and we | ||
+// can ignore said error. | ||
+#ifndef PR_SET_PTRACER | ||
+#define PR_SET_PTRACER 0x59616d61 | ||
+#endif | ||
+ | ||
+#ifndef PR_SET_PTRACER_ANY | ||
+#define PR_SET_PTRACER_ANY ((unsigned long)-1) | ||
+#endif | ||
+ | ||
static const struct option OPTIONS[] = { | ||
{"help", no_argument, nullptr, 'h'}, | ||
{"namespace", required_argument, nullptr, 'n'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ packages_select_by_deps: | |
- tf2_tools | ||
- gps-common | ||
|
||
|
||
# # For jackal | ||
# - gazebo-dev | ||
# - gazebo-ros | ||
|