search for: f_setfl

Displaying 20 results from an estimated 176 matches for "f_setfl".

Did you mean: f_setfd
2017 Mar 03
2
[PATCH 1/2] Use gnulib set_nonblocking_flag function instead of fcntl.
The previous code: fcntl (fd, F_SETFL, O_NONBLOCK) was technically incorrect, because it would have reset any other flags on the file descriptor. Thanks: Eric Blake --- bootstrap | 1 + daemon/inotify.c | 6 ++++-- lib/conn-socket.c | 21 +++++++++++---------- m4/.gitignore | 9 +++++++++ 4 files changed, 25 insertio...
2007 Jul 24
3
Quota plugin, Maildir, dict backend loop problem
...-p 19816 epoll_wait(5, {{EPOLLIN, {u32=153555248, u64=153555248}}, {EPOLLIN, {u32=153601240, u64=153601240}}, {EPOLLIN|EPOLLHUP, {u32=153567344, u64=153567344}}}, 29, 2147483647) = 3 gettimeofday({1185308526, 494477}, {420, 0}) = 0 read(20, "Lpriv/quota/storage\n", 4044) = 20 fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK) = 0 read(9, 0x9271eb8, 8192) = -1 EAGAIN (Resource temporarily unavailable) fcntl64(9, F_SETFL, O_RDWR) = 0 setsockopt(9, SOL_SOCKET, SO_SNDTIMEO, "\2003\341\1\0\0\0\0", 8) = 0 write(9, "l\0\0\0\3SELECT current FROM quota W"..., 11...
2018 Mar 30
1
Issue with a bug with imap-login
...t=htons(39552), sin_addr=inet_addr("64.142.18.25")}, [16]) = 18<TCP:[64.142.111.79:993->64.142.18.25:39552]> 263563 fcntl(18<TCP:[64.142.111.79:993->64.142.18.25:39552]>, F_GETFL) = 0x2 (flags O_RDWR) 263563 fcntl(18<TCP:[64.142.111.79:993->64.142.18.25:39552]>, F_SETFL, O_RDWR|O_NONBLOCK) = 0 263563 write(5<pipe:[1445541]>, "\213\5\4\0\223\16\0\0\0\0\0\0", 12) = 12 263563 write(2<pipe:[1445512]>, "\1\010263563 ip=64.142.18.25\n", 25) = 25 263563 getsockname(18<TCP:[64.142.111.79:993->64.142.18.25:39552]>, {sa_family=AF_INE...
2013 Mar 07
4
[PATCH 0/4] Small refactorings of the protocol layer.
As the start of work to add remote support, I'm taking a close look at the protocol layer in the library. These are some small cleanups. Rich.
2010 May 14
3
dovecot 2.0 vs. SELinux
...getegid() = 0 open("/dev/null", O_WRONLY) = 3 fcntl(3, F_GETFD) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/dovecot/config"}, 110) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl(4, F_GETFL) = 0x2 (flags O_RDWR) fcnt...
2015 Jun 21
3
dovecot auth using 100% CPU
...0.000031 read(19, "", 8192) = 0 0.000026 epoll_ctl(15, EPOLL_CTL_DEL, 19, 7fff77616870) = 0 0.000027 close(19) = 0 0.000029 socket(PF_LOCAL, SOCK_STREAM, 0) = 19 0.000027 fcntl(19, F_GETFL) = 0x2 (flags O_RDWR) 0.000028 fcntl(19, F_SETFL, O_RDWR|O_NONBLOCK) = 0 0.000029 connect(19, {sa_family=AF_LOCAL, sun_path="auth-worker"}, 110) = 0 0.000033 fstat(19, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 0.000033 lseek(19, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 0.000026 getsockname(19, {sa_family=AF_LOCA...
2002 Aug 09
0
still seeing hangs -- strace
...lect(7, [3], [3], NULL, NULL) = 1 (out [3]) write(3, "\361RK\276\257\23u\2265JmI\272(|4\346b.\2760@k\237-_x\252"..., 32) = 32 ioctl(0, TCGETS, 0xbffffa08) = -1 EINVAL (Invalid argument) fcntl64(0, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(0, F_SETFL, O_RDWR) = 0 ioctl(1, TCGETS, 0xbffffa08) = -1 EINVAL (Invalid argument) fcntl64(1, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(1, F_SETFL, O_RDWR) = 0 ioctl(2, TCGETS, 0xbffffa08) = -1 ENOTTY (Inappropriate ioctl for device)...
2002 May 30
0
update on hung rsyncs
...ect(7, [3], [3], NULL, NULL) = 1 (out [3]) write(3, "\204\355\2058\330\360\242<\313\233QMc\311\307?\322\351"..., 32) = 32 ioctl(0, TCGETS, 0xbffffa18) = -1 EINVAL (Invalid argument) fcntl64(0, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(0, F_SETFL, O_RDWR) = 0 ioctl(1, TCGETS, 0xbffffa18) = -1 EINVAL (Invalid argument) fcntl64(1, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(1, F_SETFL, O_RDWR) = 0 ioctl(2, TCGETS, 0xbffffa18) = -1 ENOTTY (Inappropriate ioctl for device)...
2002 Sep 11
0
Strange Hang over ssh
...\0\0", 4) = 4 stat64("/storage2/stpaul", {st_mode=S_IFDIR|S_ISGID|0775, st_size=20, ...}) = 0 chdir("/storage2/stpaul") = 0 socketpair(PF_UNIX, SOCK_STREAM, 0, [3, 6]) = 0 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0 socketpair(PF_UNIX, SOCK_STREAM, 0, [7, 8]) = 0 fcntl64(7, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0 fcntl64(8, F_GET...
2016 Oct 13
3
Bug 6870 resurfaced in Samba 4.2.10
...ct has a chance to succeed. I determined this by strace'ing the "net ads workgroup" command, which resulted in the following: 11:41:52 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11 <0.000027> 11:41:52 fcntl(11, F_GETFL) = 0x2 (flags O_RDWR) <0.000015> 11:41:52 fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000016> 11:41:52 fcntl(11, F_GETFD) = 0 <0.000015> 11:41:52 fcntl(11, F_SETFD, FD_CLOEXEC) = 0 <0.000016> 11:41:52 connect(11, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("192.168.81.132")}, 16) = 0 <0.000050> 11:41:52 soc...
2011 Sep 29
1
2.0.14 doveadm proxy list segfault
.....}) = 0 rt_sigaction(SIGPIPE, {0x1, [], SA_RESTORER|SA_RESTART, 0x3eada302d0}, NULL, 8) = 0 rt_sigaction(SIGALRM, {0x31c7648b40, [], SA_RESTORER|SA_SIGINFO, 0x3eada302d0}, NULL, 8) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/dovecot/config"...}, 110) = 0 fcntl(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl(3, F_SETFL, O_RDWR) = 0 write(3, "VERSION\tconfig\t2\t0\nREQ\tmodule=do"..., 38) =...
2000 Nov 08
1
socket leakage patch
...net.c Wed Nov 8 09:36:05 2000 @@ -357,6 +357,7 @@ if(setsockopt(nfd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { + close(nfd); syslog(LOG_ERR, _("setsockopt: %m")); return -1; } @@ -364,6 +365,7 @@ flags = fcntl(nfd, F_GETFL); if(fcntl(nfd, F_SETFL, flags | O_NONBLOCK) < 0) { + close(nfd); syslog(LOG_ERR, _("fcntl: %m")); return -1; } @@ -375,12 +377,14 @@ if(bind(nfd, (struct sockaddr *)&a, sizeof(struct sockaddr))) { + close(nfd); syslog(LOG_ERR, _("Can't bind to p...
2004 Dec 28
1
OpenSSH 3.9p1 X11 forwarding
...9279: 9.5464 pipe() = 4 [5] 19279: 9.5465 fcntl(4, F_SETFD, 0x00000001) = 0 19279: 9.5465 fcntl(5, F_SETFD, 0x00000001) = 0 19279: 9.5466 fcntl(4, F_GETFL, 0x00000000) = 2 19279: 9.5466 fcntl(4, F_SETFL, 0x00000082) = 0 19279: 9.5467 fcntl(5, F_GETFL, 0x00000000) = 2 19279: 9.5467 fcntl(5, F_SETFL, 0x00000082) = 0 19279: 9.5468 poll(0xFFBFF150, 2, -1) = 1 19279: 9.5469 sigfillset(0xFF042940)...
2011 Dec 28
1
/usr/lib/dovecot/imap ignores log settings?
...ction(SIGALRM, {0x7ff03e7000d0, [], SA_RESTORER|SA_SIGINFO, 0x7ff03df56480}, NULL, 8) = 0 rt_sigaction(SIGINT, {0x7ff03e700160, [], SA_RESTORER|SA_SIGINFO, 0x7ff03df56480}, NULL, 8) = 0 pipe([3, 4]) = 0 fcntl(3, F_GETFL) = 0 (flags O_RDONLY) fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl(4, F_GETFL) = 0x1 (flags O_WRONLY) fcntl(4, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 fcntl(3, F_GETFD) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fcntl(4, F_GETFD) = 0 fcntl(4, F_SETFD, FD_CLOEXEC)...
2011 Sep 26
1
nss_winbind problem
...= 3552 lstat("/var/run/winbindd", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/var/run/winbindd/pipe", {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 fcntl(3, F_GETFD) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/winbindd/pipe"...}, 110) = 0 select(4, [3], NULL, NULL, {0, 0}) = 0 (Timeout) write(3, "0\10\0\0\0\0\0\0\0\0\0\0\340\r...
2019 Nov 03
1
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...8 kill(6929, SIGKILL) = 0 I'm not sure why it is waiting for IO event on FD 5, which is a PIPE FD initialized much earlier, with no actual reads/writes on it: 22:55:15.286845 pipe([5, 6]) = 0 22:55:15.286870 fcntl(5, F_GETFL) = 0 (flags O_RDONLY) 22:55:15.286889 fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 22:55:15.286909 fcntl(6, F_GETFL) = 0x1 (flags O_WRONLY) 22:55:15.286928 fcntl(6, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 The pipe used for communication with the sendmail child is this: 22:55:15.294763 pipe([13, 14]) = 0 22:55:15.294788 clone(child_stack=NULL,...
2019 Nov 02
2
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...b/dovecot/deliver", ["/usr/lib/dovecot/deliver", "-e", "-a", "tester at krustev.net"], 0x5620b4330c40 /* 61 vars */) = 0 ... 22:55:15.286845 pipe([5, 6]) = 0 22:55:15.286870 fcntl(5, F_GETFL) = 0 (flags O_RDONLY) 22:55:15.286889 fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 22:55:15.286909 fcntl(6, F_GETFL) = 0x1 (flags O_WRONLY) 22:55:15.286928 fcntl(6, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 22:55:15.286947 fcntl(5, F_GETFD) = 0 22:55:15.286966 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 22:55:15.286985 fcntl(6, F_GETFD) = 0 22:55:15.2870...
2000 Dec 05
1
Bugreport: openssh-2.3.0p1 scp to SSH2 (2.0.13) server
...37\25"..., 8192) = 32 dup(0) = 4 dup(1) = 5 dup(2) = 6 ioctl(4, TCGETS, 0xbffff574) = -1 EINVAL (Invalid argument) fcntl(4, F_GETFL) = 0 (flags O_RDONLY) fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 ioctl(5, TCGETS, 0xbffff574) = -1 EINVAL (Invalid argument) fcntl(5, F_GETFL) = 0x1 (flags O_WRONLY) fcntl(5, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 ioctl(6, TCGETS, {B38400 opost isig icanon echo ...}) = 0 brk(0x80fd000)...
2006 Oct 28
1
Cygwin rsync to RH rsync server
...et_addr("10.0.2.137")}, [16]) = 0 [pid 26646] getpeername(3, {sa_family=AF_INET, sin_port=htons(3022), sin_addr=inet_addr("10.0.2.137")}, [16]) = 0 [pid 26646] socket(PF_FILE, SOCK_STREAM, 0) = 5 [pid 26646] fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) [pid 26646] fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 26646] connect(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) [pid 26646] close(5) = 0 [pid 26646] socket(PF_FILE, SOCK_STREAM, 0) = 5 [pid 26646] fcntl64(5, F_GETFL) = 0x2 (flags O_...
2018 Dec 20
2
Authentication/Penalty disabled (socket mode=0) introduces constant 5 sec delays (2.27 on debian 9)
...ally (exim is waiting for callout completion). with strace, I see 5 second delay with many tries to socket connection. (PID 9652 was an auth process freshly forked) [pid 9652] socket(AF_UNIX, SOCK_STREAM, 0) = 14 [pid 9652] fcntl(14, F_GETFL) = 0x2 (flags O_RDWR) [pid 9652] fcntl(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 9652] connect(14, {sa_family=AF_UNIX, sun_path="anvil-auth-penalty"}, 110) = -1 ECONNREFUSED (Connection refused) [pid 9652] close(14) = 0 [pid 9652] nanosleep({tv_sec=0, tv_nsec=20000000}, NULL) = 0 [pid 9652] socket(AF_UNIX, SOCK_STREAM...