Skip to content

Commit

Permalink
We only have child_pid and child_state when building with threads
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 7, 2014
1 parent f1c2495 commit e4c36f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/process.c
Expand Up @@ -3442,8 +3442,10 @@ static void request_coa_originate(REQUEST *request)
child_state_names[request->child_state],
child_state_names[REQUEST_RUNNING]);
#endif
#ifdef HAVE_PTHREAD_H
coa->child_pid = NO_SUCH_CHILD_PID;
coa->child_state = REQUEST_PROXIED;
#endif
rad_assert(coa->proxy_reply == NULL);
FR_STATS_TYPE_INC(coa->home_server->stats.total_requests);
coa->home_server->last_packet_sent = coa->proxy->timestamp.tv_sec;
Expand Down

0 comments on commit e4c36f4

Please sign in to comment.