search for: o_ndelay

Displaying 20 results from an estimated 28 matches for "o_ndelay".

2002 Aug 07
1
Help/Note: Bug in samba-2.2.5/msdfs
...cas/hs-handler/logfiles", 0xFFBEEF70) = 0 stat64("run/data/fracas/hs-handler/logfiles/neuer ordner", 0xFFBEEF70) Err#2 ENOENT stat64("run/data/fracas/hs-handler/logfiles/neuer ordner", 0xFFBEEF70) Err#2 ENOENT open64("run/data/fracas/hs-handler/logfiles", O_RDONLY|O_NDELAY) = 25 fcntl(25, F_SETFD, 0x00000001) = 0 fstat64(25, 0xFFBEE118) = 0 getdents64(25, 0x0029A5D0, 1048) = 896 getdents64(25, 0x0029A5D0, 1048) = 88 getdents64(25, 0x0029A5D0, 1048) = 0 close(25) = 0 stat64("run/data/fracas/hs-handler/logfiles/neuer ordner", 0xFFBEF080) Err#2 ENO...
2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
I have a strange problem with sshd (from openssh-2.9p2) on Solaris 7. My shell is bash. When I open an ssh session , and type a Control-C to bash's prompt, the shell hangs. (But, if I for instance run "sleep 10" (during which time the pty is in cooked mode) and press Control-C, the sleep command is interrupted quite normally, and the bash prompt returns.) Adding some debugging
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Thanks for the interesting puzzle to crunch! Looking at these few bread-crumbs, I wager an educated guess that this loops in `sendcmd()` (where CLI child processes talk to a daemonized copy which tracks the timers for events), around here: https://github.com/networkupstools/nut/blob/v2.8.0/clients/upssched.c#L583-L626 for the daemon and here for the child:
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Thanks for the interesting puzzle to crunch! Looking at these few bread-crumbs, I wager an educated guess that this loops in `sendcmd()` (where CLI child processes talk to a daemonized copy which tracks the timers for events), around here: https://github.com/networkupstools/nut/blob/v2.8.0/clients/upssched.c#L583-L626 for the daemon and here for the child:
2023 Jun 13
2
Upssched 100% CPU after updating Debian 12
...read()` loop continuation effectively if `pconf_char()` returned 0. Just grasping at straws here (since it is a change a couple of months before the release was cut), because if ALL of those 128 reads (skipped above) did return 0, we should not have got to this line. The comment added here "*O_NDELAY with zero bytes means nothing to read but since read() follows a successful select() with ready file descriptor, ret shouldn't be 0*" - that might be misleading too, since per internet: > The result of O_nonblock and O_ndelay is to make I/O into non-blocking mode (non-blocking), return...
2023 Jun 13
2
Upssched 100% CPU after updating Debian 12
...read()` loop continuation effectively if `pconf_char()` returned 0. Just grasping at straws here (since it is a change a couple of months before the release was cut), because if ALL of those 128 reads (skipped above) did return 0, we should not have got to this line. The comment added here "*O_NDELAY with zero bytes means nothing to read but since read() follows a successful select() with ready file descriptor, ret shouldn't be 0*" - that might be misleading too, since per internet: > The result of O_nonblock and O_ndelay is to make I/O into non-blocking mode (non-blocking), return...
2005 Dec 30
5
Dtrace locks up on sol
...e-T200 top reports it using around 3% cpu, which corresponds to one hardware thread on the cpu i guess. These are the last few lines from truss -fo /tmp/dtrace.out dtrace -l 1323: ioctl(3, DTRACEIOC_CONF, 0x10010D340) = 0 1323: openat(-3041965, "/system/object", O_RDONLY|O_NDELAY|O_LARGEFILE) = 4 1323: fcntl(4, F_SETFD, 0x00000001) = 0 1323: fstat(4, 0xFFFFFFFF7FFFF640) = 0 1323: getdents(4, 0xFFFFFFFF7F404000, 8192) = 4016 And that''s where it hangs... no output from dtrace to stdout, nor to the truss output fil...
2007 Jan 23
1
dovecotpw/sql crypt scheme core dump with rc17-19
...rypt open64("/dev/urandom", O_RDONLY) = 3 read(3, "F80E82 c", 4) = 4 fcntl(3, F_GETFD, 0x00000000) = 0 fcntl(3, F_SETFD, 0x00000001) = 0 open64("/usr/local/lib/dovecot/auth/password", O_RDONLY|O_NDELAY) Err#2 ENOENT read(3, "8382", 2) = 2 Incurred fault #6, FLTBOUNDS %pc = 0xFF0E3304 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000005 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x00000005 *** process killed...
2008 Jan 05
1
imap cores
...First unseen. * OK [UIDVALIDITY 1199514743] UIDs valid * OK [UIDNEXT 2] Predicted next UID 2 OK [READ-WRITE] Select completed. 3 UID fetch 1 ( BODY.PEEK[HEADER.FIELDS (From)]) Connection to mail closed by foreign host. openat(-3041965, "/var/mail/apps/domain/admin/Maildir/cur", O_RDONLY|O_NDELAY|O_LARGEFILE) = 9 fcntl(9, F_SETFD, 0x00000001) = 0 fstat64(9, 0x080474C0) = 0 stat64("/var/mail/apps/domain/admin/Maildir/cur", 0x080475C0) = 0 time() = 1199564680 getdents64(9, 0xFEFA4000, 8192)...
2016 Jan 06
0
[klibc:master] MIPS: Update archfcntl.h
...define O_NOCTTY 0x0800 #define FASYNC 0x1000 #define O_LARGEFILE 0x2000 +#define O_SYNC 0x4010 #define O_DIRECT 0x8000 #define O_DIRECTORY 0x10000 #define O_NOFOLLOW 0x20000 #define O_NOATIME 0x40000 #define O_CLOEXEC 0x80000 +#define O_PATH 0x200000 +#define O_TMPFILE 0x410000 #define O_NDELAY O_NONBLOCK @@ -53,6 +55,24 @@ #define F_SETLK64 34 #define F_SETLKW64 35 +#define F_SETOWN_EX 15 +#define F_GETOWN_EX 16 + +#define F_GETOWNER_UIDS 17 + +#define F_OFD_GETLK 36 +#define F_OFD_SETLK 37 +#define F_OFD_SETLKW 38 + +#define F_OWNER_TID 0 +#define F_OWNER_PID 1 +#define F_OWNER_PG...
2011 Apr 13
1
Fwd: Re: Asterisk as a Condo door opener/intercom
....h> #include<stdio.h> #include<signal.h> #include "lpswitch.h" /* Main program. */ int main(int argc, char **argv) { struct termios port_config; int fd; int set_bits = 2; /* Open monitor device. */ if ((fd = open(SWDEV, O_RDWR | O_NDELAY))< 0) { fprintf(stderr, "lpswtich: %s: %d\n", SWDEV, strerror(errno)); exit(1);} cfmakeraw(&port_config ); port_config.c_iflag=port_config.c_iflag|IXON; port_config.c_oflag=port_config.c_oflag|CLOCAL|~CRTSCTS; tcsetattr( fd, TCSANOW,&port_con...
2005 Feb 20
0
Re: Asterisk-Users Digest, Vol 7, Issue 260
...; #include <stdio.h> #include <signal.h> #include "lpswitch.h" /* Main program. */ int main(int argc, char **argv) { struct termios port_config; int fd; int set_bits = 6; /* Open monitor device. */ if ((fd = open(SWDEV, O_RDWR | O_NDELAY)) < 0) { fprintf(stderr, "lpswtich: %s: %s\n", SWDEV, sys_errlist[errno]); exit(1);} cfmakeraw( &port_config ); port_config.c_iflag=port_config.c_iflag|IXON; port_config.c_oflag=port_config.c_oflag|CLOCAL|~CRTSCTS; tcsetattr( fd, TCSANOW, &po...
2023 Jun 14
1
[Nut-upsuser] Upssched 100% CPU after updating Debian 12
Jim Klimov via Nut-upsuser writes: > So... determining that FD is to be reaped proved hard. Internet lore suggests > fcntl() and poll() on the FD, but it just seems valid to them. The errno is > also usually not raised (once I saw a "111: Connection refused" though). > So the best dumb idea so far is to bail out if we spent the whole loop (128 > attempts) and only
2007 Feb 02
1
lstats on all files in Maildir when opening an e-mail.
...rs/AA/AA/test at pacific.net.sg/Maildir/.qmail/maildirfolder", 0xFFBFF148) = 0 lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur", 0xFFBFF148) = 0 openat(-3041965, "/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur", O_RDONLY|O_NDELAY|O_LARGEFILE) = 8 fcntl(8, F_SETFD, 0x00000001) = 0 fstat64(8, 0xFFBFEEE8) = 0 getdents64(8, 0xFEE72000, 8192) = 1088 lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur/1169092926.M656431P6118V04010002I000023E9...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...ct sockaddr *) &server, sizeof(server)) == -1) > + fatal_with_errno("Can't bind TCP port %s", serv->port); > + > + if ((res = fcntl(serv->sock_fd, F_GETFL, 0)) == -1) > fatal_with_errno("fcntl(get)"); > > - if (fcntl(listenfd, F_SETFL, res | O_NDELAY) == -1) > + if (fcntl(serv->sock_fd, F_SETFL, res | O_NDELAY) == -1) > fatal_with_errno("fcntl(set)"); > > - if (listen(listenfd, 16)) > + if (listen(serv->sock_fd, 16)) > fatal_with_errno("listen"); > > return; > +} > #else >...
2007 Jan 10
13
[DTrace] how to get socket read size
Hi i''m trying to write my first dtrace script apparently i bit off a bit more than i can chew, i want to track io over sockets, i found your socketsize.d that gave me how to track writes, but i''m at a loss how to track reads, frankly i don''t see how your write tracker works because it uses a probe in a function that only takes two arguments but you grab size of write
2008 Dec 17
10
Cannot remove a file on a GOOD ZFS filesystem
Hello all, First off, i''m talking about a SXDE build 89. Sorry if that was discussed here before, but i did not find anything related on the archives, and i think is a "weird" issue... If i try to remove a specific file, i got: # rm file1 rm: file1: No such file or directory # rm -rf dir2 rm: Unable to remove directory dir2: Directory not empty Take a look: ------- cut
2019 Dec 11
0
[PATCH 15/24] compat_ioctl: scsi: move ioctl handling into drivers
...csi/ch.c +++ b/drivers/scsi/ch.c @@ -872,6 +872,10 @@ static long ch_ioctl_compat(struct file * file, unsigned int cmd, unsigned long arg) { scsi_changer *ch = file->private_data; + int retval = scsi_ioctl_block_when_processing_errors(ch->device, cmd, + file->f_flags & O_NDELAY); + if (retval) + return retval; switch (cmd) { case CHIOGPARAMS: @@ -883,7 +887,7 @@ static long ch_ioctl_compat(struct file * file, case CHIOINITELEM: case CHIOSVOLTAG: /* compatible */ - return ch_ioctl(file, cmd, arg); + return ch_ioctl(file, cmd, (unsigned long)compat_ptr(arg))...
2019 Dec 11
3
[PATCH 00/24] block, scsi: final compat_ioctl cleanup
Hi Jens, James and Martin, This series concludes the work I did for linux-5.5 on the compat_ioctl() cleanup, killing off fs/compat_ioctl.c and block/compat_ioctl.c by moving everything into drivers. Overall this would be a reduction both in complexity and line count, but as I'm also adding documentation the overall number of lines increases in the end. My plan was originally to keep the
2020 Jan 02
1
[PATCH v3 13/22] compat_ioctl: scsi: move ioctl handling into drivers
...csi/ch.c +++ b/drivers/scsi/ch.c @@ -872,6 +872,10 @@ static long ch_ioctl_compat(struct file * file, unsigned int cmd, unsigned long arg) { scsi_changer *ch = file->private_data; + int retval = scsi_ioctl_block_when_processing_errors(ch->device, cmd, + file->f_flags & O_NDELAY); + if (retval) + return retval; switch (cmd) { case CHIOGPARAMS: @@ -883,7 +887,7 @@ static long ch_ioctl_compat(struct file * file, case CHIOINITELEM: case CHIOSVOLTAG: /* compatible */ - return ch_ioctl(file, cmd, arg); + return ch_ioctl(file, cmd, (unsigned long)compat_ptr(arg))...