Mailinglist Archive: opensuse-bugs (15732 mails)

< Previous Next >
[Bug 297654] osd_cat does not honor the -d switch
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 6 Aug 2007 04:04:26 -0600 (MDT)
  • Message-id: <20070806100426.6BF3B245350@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=297654#c4


Magnus Boman <mboman@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |REOPENED
      Info Provider|mboman@xxxxxxxxxx           |




--- Comment #4 from Magnus Boman <mboman@xxxxxxxxxx>  2007-08-06 04:04:25 MST ---
I'm using x86.

It's strace, because in order to convince you that it does not work, I started
it with strace, but when doing it that, it DOES exit correctly after the number
of seconds I specify.

If I create a file containing some next, then do;

time osd_cat -d 2 myfile.txt

It will never quit.



Example (where I have to use Ctrl+C to exit);

mboman@mblxws01:~> time osd_cat -d 2 hello.txt


real    0m13.626s
user    0m0.016s
sys     0m0.000s



Example same as above, but with strace attached (only attaching the command and
the last couple of lines);

mboman@mblxws01:~> time strace osd_cat -d 2 hello.txt


fstat64(3, {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f9c000
read(3, "hello\n\n", 4096)              = 7
write(5, "\0", 1)                       = 1
read(4, "\0", 1)                        = 1
futex(0x8059528, FUTEX_WAIT, 1, NULL)   = 0
futex(0x805950c, FUTEX_WAKE, 1)         = 0
write(5, "\0", 1)                       = 1
read(4, "\0", 1)                        = 1
futex(0x80594d8, 0x5 /* FUTEX_??? */, 1) = 1
futex(0x80594bc, FUTEX_WAKE, 1)         = 1
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f9c000, 4096)                = 0
futex(0x8059528, FUTEX_WAIT, 3, NULL)   = 0
futex(0x805950c, FUTEX_WAKE, 1)         = 0
futex(0x8059528, FUTEX_WAIT, 5, NULL)   = 0
futex(0x805950c, FUTEX_WAKE, 1)         = 0
write(5, "\0", 1)                       = 1
read(4, "\0", 1)                        = 1
futex(0x80594d8, 0x5 /* FUTEX_??? */, 1) = 1
futex(0x80594bc, FUTEX_WAKE, 1)         = 1
select(7, [6], [6], NULL, NULL)         = 1 (out [6])
writev(6, [{"<\2\2\0\4\0\340\4<\2\2\0\5\0\340\4<\2\2\0\6\0\340\0046"..., 68}],
1) = 68
select(7, [6], [], NULL, NULL)          = 1 (in [6])
read(6, "\1\1\236\0\0\0\0\0co`\4\1\0\340\4\0\0\0\0\0\0\0\0\364O"..., 4096) = 32
read(6, 0x8059c64, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
close(6)                                = 0
close(4)                                = 0
close(5)                                = 0
exit_group(0)                           = ?
Process 22136 detached

real    0m2.575s
user    0m0.008s
sys     0m0.040s


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References