Re: [dwm] [dvtm] [PATCH 1/2] Correct signal handling

From: Rainer Müller <raimue_AT_codingfarm.de>
Date: Fri, 02 May 2008 01:00:30 +0200

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
Received on Fri May 02 2008 - 01:00:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:36:45 UTC