summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-12-21 00:46:00 +0300
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-12-21 00:46:00 +0300
commit12f99c6a7f340ccb81871a7eed64cca9dd43d5f7 (patch)
treec49d8bce08695e17355c18a0de62048a610380ed /accel-pppd
parentc6f264ad09305f646a15bfea2985c277a8d3bbe2 (diff)
downloadaccel-ppp-12f99c6a7f340ccb81871a7eed64cca9dd43d5f7.tar.gz
accel-ppp-12f99c6a7f340ccb81871a7eed64cca9dd43d5f7.zip
T57: use readlink exe_buf to determine correct program name after restart
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c
index 4af14f0..14e670d 100644
--- a/accel-pppd/main.c
+++ b/accel-pppd/main.c
@@ -162,7 +162,7 @@ static void __core_restart(int soft)
readlink(exe, exe_buf, PATH_MAX);
while (1) {
- execv(exe, argv);
+ execv(exe_buf, argv);
sleep(3);
}
}