Ha, I see. Additional signal handler to call the exit handlers. :P > -----Original Message----- > From: Chris Wilson [mailto:chris@xxxxxxxxxxxxxxxxxx] > Sent: Tuesday, June 21, 2016 3:22 PM > To: Wang, Zhi A <zhi.a.wang@xxxxxxxxx> > Cc: intel-gfx@xxxxxxxxxxxxxxxxxxxxx > Subject: Re: [PATCH igt] igt: Add basic framework for GVT-g testing > > On Tue, Jun 21, 2016 at 12:17:48PM +0000, Wang, Zhi A wrote: > > To me, atexit is not reliable. As if something wrong happened during the test > and an unexpected signal was received, the prog would be aborted. atexit() > would not work on that case. Better do failsafe work in parent process and run > the test case in child process I think. > > Welcome to igt. atexit here handles signals, but we don't yet have universal > setup/cleanup. Just a wishlist. > -Chris > > -- > Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx