diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-12-21 00:46:00 +0300 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-12-21 00:46:00 +0300 |
commit | 12f99c6a7f340ccb81871a7eed64cca9dd43d5f7 (patch) | |
tree | c49d8bce08695e17355c18a0de62048a610380ed | |
parent | c6f264ad09305f646a15bfea2985c277a8d3bbe2 (diff) | |
download | accel-ppp-12f99c6a7f340ccb81871a7eed64cca9dd43d5f7.tar.gz accel-ppp-12f99c6a7f340ccb81871a7eed64cca9dd43d5f7.zip |
T57: use readlink exe_buf to determine correct program name after restart
-rw-r--r-- | accel-pppd/main.c | 2 |
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); } } |