11 static void do_sso_sockets(void)
13 struct sockopt so
= { 0, 0, 0, 0 };
17 for (i
= 0; i
< nr_sockets
; i
++) {
18 fd
= shm
->sockets
[i
].fd
;
19 sso_socket(&shm
->sockets
[i
].triplet
, &so
, fd
);
25 if (no_files
== TRUE
) /* We don't regenerate sockets */
28 /* we're about to exit. */
29 if (shm
->spawn_no_more
)
32 shm
->regenerating
= TRUE
;
34 sleep(1); /* give children time to finish with fds. */
38 output(0, "Regenerating random pages, fd's etc.\n");
42 /* Do random setsockopts on all network sockets. */
45 destroy_global_mappings();
46 setup_global_mappings();
48 generate_random_page(page_rand
);
50 shm
->regenerating
= FALSE
;