Skip to content

Commit

Permalink
set up the fault handlers.
Browse files Browse the repository at this point in the history
Now that the fault handlers are no longer retarded
  • Loading branch information
alandekok committed Apr 4, 2017
1 parent 8ac1662 commit 4de1fa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/util/radius_schedule_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static char const *secret = "testing123";
*/
extern int fr_socket_server_base(int proto, fr_ipaddr_t *ipaddr, int *port, char const *port_name, bool async);
extern int fr_socket_server_bind(int sockfd, fr_ipaddr_t *ipaddr, int *port, char const *interface);
extern int fr_fault_setup(char const *cmd, char const *program);

static int test_decode(void const *packet_ctx, uint8_t *const data, size_t data_len, REQUEST *request)
{
Expand Down Expand Up @@ -219,6 +220,8 @@ int main(int argc, char *argv[])
}
#endif

fr_fault_setup(NULL, argv[0]);

(void) fr_schedule_socket_add(sched, sockfd, &sockfd, &transport);

sleep(10);
Expand Down

0 comments on commit 4de1fa0

Please sign in to comment.