diff options
author | toni <matzeton@googlemail.com> | 2016-07-24 00:43:17 +0200 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2016-07-24 00:43:17 +0200 |
commit | bf99b661c5a378804deaa1924bd6a0e40b056456 (patch) | |
tree | 95ab7a1a541dc55b37a78c1ea52436c6a66c9e67 /src/shell | |
parent | 96116234740392ebb5fa0e78c9fc25d8c69abf16 (diff) |
wrong link command, unchecked result
Diffstat (limited to 'src/shell')
-rw-r--r-- | src/shell/shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell/shell.c b/src/shell/shell.c index eff2566..79b4792 100644 --- a/src/shell/shell.c +++ b/src/shell/shell.c @@ -27,7 +27,8 @@ int main(int argc, char **argv) { char *line = calloc(128, sizeof(char)); size_t len = 128; ssize_t read = getline(&line, &len, stdin); - write(passfifo_fd, line, len); + if (write(passfifo_fd, line, len) == -1) + perror("write"); printf("\n"); if ( tcsetattr(0, TCSANOW, &old) != 0 ) |