Marc Andre Tanner wrote:
 void
 sigterm_handler(int sig){
+       int errsv = errno;
        running = false;
+       errno = errsv;
 }

I don't think a simple variable assignment can change errno, or i am
missing something?

Right, this is unnecessary. I just added the save and restore for all sig*_handlers without thinking about this simple case. I don't think I need to send another patch, just remove those two lines.

Rainer

Reply via email to