diff options
| author | Roy Marples <roy@marples.name> | 2008-06-10 22:23:57 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-06-10 22:23:57 +0000 |
| commit | eb942e0abce48272767404ca604573d3ea674302 (patch) | |
| tree | 479c4d8049b34bb3758034ca0bd2354dce079ce3 /bpf.c | |
| parent | 7349c9bf8cf950dfb92d53f9a860f34b33d97229 (diff) | |
| download | dhcpcd-eb942e0abce48272767404ca604573d3ea674302.tar.xz | |
Remove the signal array stack as our pipe handling should be secure enough now. Also, move the normalize close_on_exec and setting non block.
Diffstat (limited to 'bpf.c')
| -rw-r--r-- | bpf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -121,7 +121,8 @@ open_socket(struct interface *iface, int protocol) } if (ioctl(fd, BIOCSETF, &pf) == -1) goto eexit; - close_on_exec(fd); + if (set_cloexec(fd) == -1) + goto eexit; if (*fdp != -1) close(*fdp); *fdp = fd; |
