comparison src/dhcpcd.c @ 5530:226b850d158d draft

Fix compile without various defines
author Roy Marples <roy@marples.name>
date Fri, 30 Oct 2020 22:18:57 +0000
parents 071a9ea18363
children 4492d1d88fdd
comparison
equal deleted inserted replaced
5529:16610f4104a4 5530:226b850d158d
1420 loginfox(sigmsg, "SIGUSR1", "renewing"); 1420 loginfox(sigmsg, "SIGUSR1", "renewing");
1421 dhcpcd_renew(ctx); 1421 dhcpcd_renew(ctx);
1422 return; 1422 return;
1423 case SIGUSR2: 1423 case SIGUSR2:
1424 loginfox(sigmsg, "SIGUSR2", "reopening log"); 1424 loginfox(sigmsg, "SIGUSR2", "reopening log");
1425 #ifdef PRIVSEP
1425 if (IN_PRIVSEP(ctx)) { 1426 if (IN_PRIVSEP(ctx)) {
1426 if (ps_root_logreopen(ctx) == -1) 1427 if (ps_root_logreopen(ctx) == -1)
1427 logerr("ps_root_logreopen"); 1428 logerr("ps_root_logreopen");
1428 } else { 1429 return;
1429 if (logopen(ctx->logfile) == -1) 1430 }
1430 logerr("logopen"); 1431 #endif
1431 } 1432 if (logopen(ctx->logfile) == -1)
1433 logerr("logopen");
1432 return; 1434 return;
1433 case SIGCHLD: 1435 case SIGCHLD:
1434 while (waitpid(-1, NULL, WNOHANG) > 0) 1436 while (waitpid(-1, NULL, WNOHANG) > 0)
1435 ; 1437 ;
1436 return; 1438 return;