[1414] in SIPB bug reports

home help back first fref pref prev next nref lref last post

RT xscreensaver core dump

daemon@ATHENA.MIT.EDU (John Carr)
Fri Nov 2 16:53:36 1990

To: bug-sipb@ATHENA.MIT.EDU
Date: Fri, 02 Nov 90 16:53:16 EST
From: John Carr <jfc@ATHENA.MIT.EDU>


I looked at the code:

This:

clean_up_and_die(val)
int val;
{
     char buf[50];

     sprintf(buf, "/tmp/%s.%s.pid", APPCLASS, DisplayString(dpy));
     unlink(buf);
     if (debug_file)
          fclose(debug_file);

     exit(val);
}

should look more like this:

...
	if(dpy && DisplayString(dpy))
	{
	     sprintf(buf, "/tmp/%s.%s.pid", APPCLASS, DisplayString(dpy));
	     (void) unlink(buf);
	}
...


home help back first fref pref prev next nref lref last post