Skip to content

Commit bccf15b

Browse files
committed
updated allow ptrace to remove printing multiple times when the wrapper is loaded and updated launch r to use relative path
1 parent 314983c commit bccf15b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

scripts/allow_ptrace.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33

44
__attribute__((constructor)) void allow_ptrace() {
55
prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY);
6-
fprintf(stderr, "allow_ptrace: called\n");
76
}

scripts/launch_r.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22

3-
WORK_DIR=$PWD
4-
export LD_PRELOAD="$WORK_DIR/scripts/allow_ptrace.so"
5-
# exec "$WORK_DIR/build/r-devel/bin/R" "$@"
3+
export LD_PRELOAD="./scripts/allow_ptrace.so"
4+
# # `which_r.sh` sets the R binary used in the command below
65
exec /usr/bin/R "$@"

0 commit comments

Comments
 (0)