File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ wdctl_restart(int afd)
267
267
char * sock_name ;
268
268
s_config * conf = NULL ;
269
269
struct sockaddr_un sa_un ;
270
- t_client * client , * head ;
270
+ t_client * client ;
271
271
char * tempstring = NULL ;
272
272
pid_t pid ;
273
273
socklen_t len ;
@@ -309,9 +309,7 @@ wdctl_restart(int afd)
309
309
310
310
/* The child is connected. Send them over the socket the existing clients */
311
311
LOCK_CLIENT_LIST ();
312
- client_list_dup (& head );
313
- UNLOCK_CLIENT_LIST ();
314
- client = head ;
312
+ client = client_get_first_client ();
315
313
while (client ) {
316
314
/* Send this client */
317
315
safe_asprintf (& tempstring ,
@@ -323,7 +321,7 @@ wdctl_restart(int afd)
323
321
free (tempstring );
324
322
client = client -> next ;
325
323
}
326
- client_list_destroy ( head );
324
+ UNLOCK_CLIENT_LIST ( );
327
325
328
326
close (fd );
329
327
You can’t perform that action at this time.
0 commit comments