restartable syscalls nechci!

Radim Kolar hsn at netmag.cz
Wed Jan 14 18:01:18 CET 2004


vypada to, ze funkce standardni C library read() nevrati -1 pokud obdrzi
return code restart zpusobeny signalem alarm a zavola read znova, asi
aby si to programator usnadnil.

  6398 webbench 0.256261 CALL  read(0x5,0xbfbfe530,0x5dc)
  6398 webbench 2.213878 RET   read RESTART
  6398 webbench 2.213974 PSIG  SIGALRM caught handler=0x8048d78 mask=0x0 code=0x
0
  6398 webbench 2.214087 CALL  sigreturn(0xbfbfe210)
  6398 webbench 2.214110 RET   sigreturn JUSTRETURN
  6398 webbench 2.214215 CALL  read(0x5,0xbfbfe530,0x5dc)

da se to nejak v te knihovne vypnout? V linuxu to beha okay a oba dva systemy
se chlubi v man page, ze jsou posix compatibilni.



More information about the Users-l mailing list