Commit 003b6e90 authored by Andrey Vagin's avatar Andrey Vagin

zdtm: move tast_daemon after preparation actions

parent 8818ee72
...@@ -72,7 +72,6 @@ int main(int argc, char *argv[]) ...@@ -72,7 +72,6 @@ int main(int argc, char *argv[])
int i; int i;
test_init(argc, argv); test_init(argc, argv);
test_daemon();
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
if (fd<0){ if (fd<0){
...@@ -94,6 +93,8 @@ int main(int argc, char *argv[]) ...@@ -94,6 +93,8 @@ int main(int argc, char *argv[])
send_request(); send_request();
recv_reply(); recv_reply();
test_daemon();
while (test_go()){ while (test_go()){
for (i=0;i<CMD_NUM;i++){ for (i=0;i<CMD_NUM;i++){
cmd[i](); cmd[i]();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment