summaryrefslogtreecommitdiffstats
path: root/src/tuntap.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 06:10:25 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 06:11:31 +0200
commit6ed0948d5df69ff81404a702cfbebe3217fa2f90 (patch)
tree6ddaf5523639c2f6f81f479b12745a2f9926a52e /src/tuntap.c
parent73f7d5048c0e2ad4817ad208de02adee73938ed0 (diff)
downloadfastd-6ed0948d5df69ff81404a702cfbebe3217fa2f90.tar
fastd-6ed0948d5df69ff81404a702cfbebe3217fa2f90.zip
Remove EINTR handling where signals are blocked anyways
Diffstat (limited to 'src/tuntap.c')
-rw-r--r--src/tuntap.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/tuntap.c b/src/tuntap.c
index b5a5df9..7f60caf 100644
--- a/src/tuntap.c
+++ b/src/tuntap.c
@@ -312,14 +312,8 @@ void fastd_tuntap_handle(void) {
buffer = fastd_buffer_alloc(max_len, conf.min_encrypt_head_space, conf.min_encrypt_tail_space);
ssize_t len = read(ctx.tunfd, buffer.data, max_len);
- if (len < 0) {
- if (errno == EINTR) {
- fastd_buffer_free(buffer);
- return;
- }
-
+ if (len < 0)
exit_errno("read");
- }
buffer.len = len;