[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LTP] fatal signal handling



Hi!

  currently,  tests  in  ltp  can possibly catch fatal signals such as
SIGSEGV  recursively.  imagine  rmdir()  is faulty and causes SIGSEGV.
tst_sig  sets  cleanup()  as  handler  for  SIGSEGV, but cleanup calls
rmdir() itself. possible solutions are

1. using sigaction() instead of signal()
2. checking "reentering" in handler

which way is preferable?

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19