… | |
… | |
1404 | if (fcntl (0, F_SETFL, O_NONBLOCK) < 0) |
1404 | if (fcntl (0, F_SETFL, O_NONBLOCK) < 0) |
1405 | perror ("fcntl"), exit (1); |
1405 | perror ("fcntl"), exit (1); |
1406 | |
1406 | |
1407 | e->fname = NULL; |
1407 | e->fname = NULL; |
1408 | e->inode = 0; |
1408 | e->inode = 0; |
|
|
1409 | if (desc == arg) |
1409 | e->desc = xstrdup ("stdin"); |
1410 | e->desc = xstrdup ("stdin"); |
|
|
1411 | else |
|
|
1412 | e->desc = xstrdup (desc); |
1410 | } |
1413 | } |
1411 | else |
1414 | else |
1412 | { |
1415 | { |
1413 | e->fname = xstrdup (fname); |
1416 | e->fname = xstrdup (fname); |
1414 | |
1417 | |