mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 14:43:24 +00:00
Output statistics per option and SIGUSR1
This commit is contained in:
parent
2af6089436
commit
c2196d6f15
17 changed files with 304 additions and 26 deletions
|
@ -197,7 +197,10 @@ int _xioopen_open(const char *path, int rw, struct opt *opts) {
|
|||
|
||||
retropt_modet(opts, OPT_PERM, &mode);
|
||||
|
||||
if ((fd = Open(path, flags, mode)) < 0) {
|
||||
do {
|
||||
fd = Open(path, flags, mode);
|
||||
} while (fd < 0 && errno == EINTR);
|
||||
if (fd < 0) {
|
||||
Error4("open(\"%s\", 0%lo, 0%03o): %s",
|
||||
path, flags, mode, strerror(errno));
|
||||
return STAT_RETRYLATER;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue