Exemplo n.º 1
0
static void signal_reload(/*@unused@*/ int sig)
{
	(void)signal(SIGUSR1, signal_reload);

	(void)sig;

	if (AraKiri)
		return;

#ifdef USE_USB
	HPReCheckSerialReaders();
#endif
} /* signal_reload */
Exemplo n.º 2
0
void signal_reload(int sig)
{
	static int rescan_ongoing = 0;

	if (AraKiri)
		return;

	Log1(PCSC_LOG_INFO, "Reload serial configuration");
	if (rescan_ongoing)
	{
		Log1(PCSC_LOG_INFO, "Rescan already ongoing");
		return;
	}

	rescan_ongoing = 0;

	HPReCheckSerialReaders();

	rescan_ongoing = 0;
	Log1(PCSC_LOG_INFO, "End reload serial configuration");
} /* signal_reload */