Pb with signal() and read()

2000-07-30 Thread Christophe Leroy
Hello, I'm using gcc on Linux RedHat 6.2 It's said in man that signal() behaviour is SYSV one. But, when I compile my programs, signal() has got the BSD behaviour. Why ? How can I make it have SYSV behaviour ? read() doesn't return on signal. Why ? I want it to return with errno=EINTR. How can I

Re: Pb with signal() and read()

2000-07-30 Thread christophe leroy
Matt Wilson a écrit : > > read() doesn't return on signal. Why ? I want it to return with > > errno=EINTR. How can I do that ? > > read should return on a signal - do you have a test case that shows > differently? Look this little test prog: #include void fsig(int sig) { printf("Sig re

Pb with signal() and read()

2000-08-01 Thread Christophe Leroy
Hello, I'm using gcc on Linux RedHat 6.2 It's said in man that signal() behaviour is SYSV one. But, when I compile my programs, signal() has got the BSD behaviour. Why ? How can I make it have SYSV behaviour ? read() doesn't return on signal. Why ? I want it to return with errno=EINTR. How can I