print error code
This commit is contained in:
parent
a54e0a7f8b
commit
9b04614543
1 changed files with 2 additions and 2 deletions
|
@ -51,10 +51,10 @@ main(void)
|
|||
int ret;
|
||||
ret = pipe2(spray[i], O_NONBLOCK);
|
||||
if (ret < 0) {
|
||||
printf("main: error: pipe2: object %lu\n", i);
|
||||
printf("main: error: object %lu pipe2: %i\n", i, ret);
|
||||
exit(-1);
|
||||
}
|
||||
ret = fcntl(spray[i][0], F_SETPIPE_SZ, 8);
|
||||
ret = fcntl(spray[i][0], F_SETPIPE_SZ, 8192);
|
||||
if (ret < 0) {
|
||||
printf("main: error: fcntl: object %lu\n", i);
|
||||
exit(-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue