Re: POSIX compatibility?

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Wed, 11 Dec 1996 13:33:50 +0100 (MET)


> Tracing a program changes the behaviour of interruptable syscalls. This
> should be fixed in the kernel sometime, but it is difficult because the
> context of the interrupted syscall is lost after the debugger has been
> called. I tried to get it right in Linux/m68k, but i didn't succeed. The
> GDB testsuite is a good place to find the difficult parts.
>
> So actually read() does return EINTR, but only when not tracing.

Ulrich's program doesn't return from read() even when not run with strace.
I've tested it with Linux 2.0.26 for both Intel (a.out and Elf) and DEC ALpha.

Harald

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^