11 static void do_sso_sockets(void)
13 struct sockopt so
= { 0, 0, 0, 0 };
16 for (i
= 0; i
< nr_sockets
; i
++) {
19 fd
= shm
->sockets
[i
].fd
;
20 sso_socket(&shm
->sockets
[i
].triplet
, &so
, fd
);
26 if (no_files
== TRUE
) /* We don't regenerate sockets */
29 /* we're about to exit. */
30 if (shm
->spawn_no_more
)
33 shm
->regenerating
= TRUE
;
35 sleep(1); /* give children time to finish with fds. */
39 output(0, "Regenerating random pages, fd's etc.\n");
43 /* Do random setsockopts on all network sockets. */
46 destroy_shared_mappings();
47 setup_shared_mappings();
49 generate_random_page(page_rand
);
51 shm
->regenerating
= FALSE
;