Changeset 17726 for src/router/busybox/networking/inetd.c
- Timestamp:
- 10/08/11 15:43:28 (21 months ago)
- File:
-
- 1 edited
-
src/router/busybox/networking/inetd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/busybox/networking/inetd.c
r17628 r17726 1279 1279 rearm_alarm(); /* will revive it in RETRYTIME sec */ 1280 1280 restore_sigmask(&omask); 1281 maybe_close(new_udp_fd); 1281 1282 maybe_close(accepted_fd); 1282 1283 continue; /* -> check next fd in fd set */ … … 1299 1300 sleep(1); 1300 1301 restore_sigmask(&omask); 1302 maybe_close(new_udp_fd); 1301 1303 maybe_close(accepted_fd); 1302 1304 continue; /* -> check next fd in fd set */ … … 1305 1307 pid--; /* -1: "we did fork and we are child" */ 1306 1308 } 1307 /* if pid == 0 here, we never forked*/1309 /* if pid == 0 here, we didn't fork */ 1308 1310 1309 1311 if (pid > 0) { /* parent */ 1310 1312 if (sep->se_wait) { 1311 /* tcp wait: we passed listeningsocket to child,1313 /* wait: we passed socket to child, 1312 1314 * will wait for child to terminate */ 1313 1315 sep->se_wait = pid; … … 1346 1348 /* "nowait" udp */ 1347 1349 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); 1349 1355 /* peek at the packet and remember peer addr */ 1350 intr = recvfrom(ctrl, NULL, 0, MSG_PEEK|MSG_DONTWAIT,1356 r = recvfrom(ctrl, NULL, 0, MSG_PEEK|MSG_DONTWAIT, 1351 1357 &lsa->u.sa, &lsa->len); 1352 1358 if (r < 0)
Note: See TracChangeset
for help on using the changeset viewer.
