diff options
Diffstat (limited to 'sock.c')
-rw-r--r-- | sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -177,7 +177,8 @@ static void set_system_socket_mem(int which, int val) slprintf(buff, sizeof(buff), "%d", val); ret = write(fd, buff, strlen(buff)); - ret = ret; + if (ret < 0) + panic("Cannot set system socket memory!\n"); close(fd); } |