[w3m-dev 03177] SIGUSR1 --> W3M_SIGIMG in image.c
* image.c (W3M_SIGIMG): added (load_image_handler): s/SIGUSR1/W3M_SIGIMG/ (load_image_next): ditto (loadImage): ditto From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,11 @@
|
|||||||
|
2002-04-17 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03177] SIGUSR1 --> W3M_SIGIMG in image.c
|
||||||
|
* image.c (W3M_SIGIMG): added
|
||||||
|
(load_image_handler): s/SIGUSR1/W3M_SIGIMG/
|
||||||
|
(load_image_next): ditto
|
||||||
|
(loadImage): ditto
|
||||||
|
|
||||||
2002-04-17 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
|
2002-04-17 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
|
||||||
|
|
||||||
* [w3m-dev 03176] no Content-Type in http response header
|
* [w3m-dev 03176] no Content-Type in http response header
|
||||||
@@ -3345,4 +3353,4 @@
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.370 2002/04/17 02:32:13 ukai Exp $
|
$Id: ChangeLog,v 1.371 2002/04/17 02:36:45 ukai Exp $
|
||||||
|
|||||||
16
image.c
16
image.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: image.c,v 1.8 2002/03/06 03:32:11 ukai Exp $ */
|
/* $Id: image.c,v 1.9 2002/04/17 02:36:45 ukai Exp $ */
|
||||||
|
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
#ifdef USE_IMAGE
|
#ifdef USE_IMAGE
|
||||||
|
|
||||||
|
#ifndef W3M_SIGIMG
|
||||||
|
#define W3M_SIGIMG (SIGUSR1)
|
||||||
|
#endif
|
||||||
|
|
||||||
static int image_index = 0;
|
static int image_index = 0;
|
||||||
|
|
||||||
/* display image */
|
/* display image */
|
||||||
@@ -279,7 +283,7 @@ static MySignalHandler
|
|||||||
load_image_handler(SIGNAL_ARG)
|
load_image_handler(SIGNAL_ARG)
|
||||||
{
|
{
|
||||||
need_load_image = TRUE;
|
need_load_image = TRUE;
|
||||||
signal(SIGUSR1, load_image_handler);
|
signal(W3M_SIGIMG, load_image_handler);
|
||||||
SIGNAL_RETURN;
|
SIGNAL_RETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,7 +291,7 @@ static MySignalHandler
|
|||||||
load_image_next(SIGNAL_ARG)
|
load_image_next(SIGNAL_ARG)
|
||||||
{
|
{
|
||||||
need_load_image = TRUE;
|
need_load_image = TRUE;
|
||||||
signal(SIGUSR1, load_image_handler);
|
signal(W3M_SIGIMG, load_image_handler);
|
||||||
loadImage(IMG_FLAG_NEXT);
|
loadImage(IMG_FLAG_NEXT);
|
||||||
SIGNAL_RETURN;
|
SIGNAL_RETURN;
|
||||||
}
|
}
|
||||||
@@ -446,7 +450,7 @@ loadImage(int flag)
|
|||||||
if (image_lock)
|
if (image_lock)
|
||||||
unlink(image_lock);
|
unlink(image_lock);
|
||||||
need_load_image = FALSE;
|
need_load_image = FALSE;
|
||||||
signal(SIGUSR1, load_image_handler);
|
signal(W3M_SIGIMG, load_image_handler);
|
||||||
|
|
||||||
if (!image_list)
|
if (!image_list)
|
||||||
return;
|
return;
|
||||||
@@ -506,7 +510,7 @@ loadImage(int flag)
|
|||||||
exit(0);
|
exit(0);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#endif
|
#endif
|
||||||
kill(getppid(), SIGUSR1);
|
kill(getppid(), W3M_SIGIMG);
|
||||||
}
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
@@ -517,7 +521,7 @@ loadImage(int flag)
|
|||||||
}
|
}
|
||||||
load_image_end:
|
load_image_end:
|
||||||
if (flag == IMG_FLAG_NEXT)
|
if (flag == IMG_FLAG_NEXT)
|
||||||
signal(SIGUSR1, load_image_next);
|
signal(W3M_SIGIMG, load_image_next);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageCache *
|
ImageCache *
|
||||||
|
|||||||
Reference in New Issue
Block a user