diff options
author | Wolfgang Draxinger <code@datenwolf.net> | 2025-05-20 17:05:40 +0200 |
---|---|---|
committer | Wolfgang Draxinger <code@datenwolf.net> | 2025-05-20 17:05:40 +0200 |
commit | f5dffd06681427b047e941c88cd8de23549c5f77 (patch) | |
tree | a615e03148f96e8298c59c6a2c0ca50651359404 | |
parent | 3d5b3b8016e1bc932c386c46a4949e178d5985b9 (diff) | |
download | rsvr-main.tar.gz rsvr-main.tar.bz2 |
-rw-r--r-- | src/rsvr.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -44,6 +44,11 @@ int main(int argc, char *argv[]) if( 0 > wb ){ perror("write(reservoir)"); } if( 0 > rb || 0 > wb ){ return EXIT_FAILURE; } + if( 0 > lseek(rsvr_fd, 0, SEEK_SET) ){ + perror("lseek(reservoir, 0, SEEK_SET)"); + return EXIT_FAILURE; + } + if( 0 > dup2(rsvr_fd, 0) ){ perror("dup2(reservoir, stdin)"); return EXIT_FAILURE; |