Skip to content

Commit

Permalink
rc: make qos-start run in blocking mode
Browse files Browse the repository at this point in the history
Since QoS config gets applied immediately after rather than
before calling this script, ensure it has all the necessary
time to complete its own changes to QoS settings.
  • Loading branch information
RMerl committed Mar 14, 2021
1 parent 3b449fa commit 1e6831e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/src/router/rc/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ static int start_tqos(void)

fclose(f);
chmod(qosfn, 0700);
run_custom_script("qos-start", 0, "init", NULL);
run_custom_script("qos-start", 120, "init", NULL);
eval((char *)qosfn, "start");
QOSDBG("[qos] tc done!\n");

Expand Down Expand Up @@ -2792,7 +2792,7 @@ int start_cake(void)
fclose(f);
chmod("/etc/cake-qos.conf", 0755);
chmod(qosfn, 0755);
run_custom_script("qos-start", 0, "init", NULL);
run_custom_script("qos-start", 120, "init", NULL);
eval((char *)qosfn, "start");

return 0;
Expand Down

0 comments on commit 1e6831e

Please sign in to comment.