Ignore:
Timestamp:
10/08/11 15:43:28 (21 months ago)
Author:
BrainSlayer
Message:

migrate latest patches to busybox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/busybox/networking/inetd.c

    r17628 r17726  
    12791279                                                        rearm_alarm(); /* will revive it in RETRYTIME sec */ 
    12801280                                                        restore_sigmask(&omask); 
     1281                                                        maybe_close(new_udp_fd); 
    12811282                                                        maybe_close(accepted_fd); 
    12821283                                                        continue; /* -> check next fd in fd set */ 
     
    12991300                                        sleep(1); 
    13001301                                        restore_sigmask(&omask); 
     1302                                        maybe_close(new_udp_fd); 
    13011303                                        maybe_close(accepted_fd); 
    13021304                                        continue; /* -> check next fd in fd set */ 
     
    13051307                                        pid--; /* -1: "we did fork and we are child" */ 
    13061308                        } 
    1307                         /* if pid == 0 here, we never forked */ 
     1309                        /* if pid == 0 here, we didn't fork */ 
    13081310 
    13091311                        if (pid > 0) { /* parent */ 
    13101312                                if (sep->se_wait) { 
    1311                                         /* tcp wait: we passed listening socket to child, 
     1313                                        /* wait: we passed socket to child, 
    13121314                                         * will wait for child to terminate */ 
    13131315                                        sep->se_wait = pid; 
     
    13461348                        /* "nowait" udp */ 
    13471349                        if (new_udp_fd >= 0) { 
    1348                                 len_and_sockaddr *lsa = xzalloc_lsa(sep->se_family); 
     1350                                len_and_sockaddr *lsa; 
     1351                                int r; 
     1352 
     1353                                close(new_udp_fd); 
     1354                                lsa = xzalloc_lsa(sep->se_family); 
    13491355                                /* peek at the packet and remember peer addr */ 
    1350                                 int r = recvfrom(ctrl, NULL, 0, MSG_PEEK|MSG_DONTWAIT, 
     1356                                r = recvfrom(ctrl, NULL, 0, MSG_PEEK|MSG_DONTWAIT, 
    13511357                                        &lsa->u.sa, &lsa->len); 
    13521358                                if (r < 0) 
Note: See TracChangeset for help on using the changeset viewer.