search for: signal_int_handler

Displaying 10 results from an estimated 10 matches for "signal_int_handler".

2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...freq_avgfreq(xc_handle, cpuid, avgfreq); if ( ret ) - { - return errno; - } + ret = -errno; - return 0; + return ret; } static int show_pxstat_by_cpuid(xc_interface *xc_handle, int cpuid) @@ -325,7 +320,7 @@ static uint64_t *sum, *sum_cx, *sum_px; static void signal_int_handler(int signo) { - int i, j, k, ret; + int i, j, k; struct timeval tv; int cx_cap = 0, px_cap = 0; DECLARE_HYPERCALL_BUFFER(uint32_t, cpu_to_core); @@ -404,6 +399,8 @@ static void signal_int_handler(int signo res / 1000000UL, 100UL * res / (double)sum_px[i...
2005 Feb 20
2
ices2 not re-connecting on live stream
On Sun, 2005-02-20 at 12:15, Fr?d?ric Bri?re wrote: > I've been running ices2 like this 24/7 for months now, only restarting > it once a week for log rotation. Never had a problem since. setting <logsize> will cause an automatic log rotation when a certain file size has been reached. It renames <logfile> to <logfile>.1 then opens a new file <logfile> karl.
2005 Feb 20
0
ices2 not re-connecting on live stream
...config->log_id); + log_reopen(ices_config->log_id); + LOG_INFO0("Reloading playlist"); ices_config->next_track = 1; + signal(SIGHUP, signal_hup_handler); } @@ -67,6 +69,7 @@ void signals_setup(void) { + signal(SIGHUP, signal_hup_handler); signal(SIGINT, signal_int_handler); signal(SIGTERM, signal_int_handler); signal(SIGUSR1, signal_usr1_handler); -- Fr?d?ric Bri?re <*> fbriere@fbriere.net => <fbriere@abacom.com> IS NO MORE: <http://www.abacomsucks.com> <=
2012 May 29
0
[PATCH] xenpm: Fix reporting of C0 residence times
...npm to sometimes become negative. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com> diff -r 53e0571f94e4 -r 3d52d9fe6255 tools/misc/xenpm.c --- a/tools/misc/xenpm.c Fri May 25 08:21:25 2012 +0100 +++ b/tools/misc/xenpm.c Tue May 29 18:41:20 2012 +0200 @@ -351,8 +351,12 @@ static void signal_int_handler(int signo for ( i = 0; i < max_cpu_nr; i++ ) if ( !get_cxstat_by_cpuid(xc_handle, i, &cxstat_end[i]) ) for ( j = 0; j < cxstat_end[i].nr; j++ ) - sum_cx[i] += cxstat_end[i].residencies[j] - - cxstat_...
2004 Aug 06
3
nice: EROR stream/ices_instance_stream libshout error: Out of memory
ehm, how many memory i need!? : ) i had first 64mb now i have 128mb but also: EROR stream/ices_instance_stream libshout error: Out of memory... --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body.
2004 Aug 06
2
AW: nice: EROR stream/ices_instance_stream libshouterror: Out of memory
i can do it, but i mean it would not talk much to you ; ) [2003-05-31 12:00:25] INFO ices-core/main ices started... [2003-05-31 12:00:25] EROR stream/ices_instance_stream libshout error: Out of memory [2003-05-31 12:00:31] INFO signals/signal_int_handler Shutdown requested... [2003-05-31 12:16:47] INFO ices-core/main ices started... [2003-05-31 12:16:47] EROR stream/ices_instance_stream libshout error: Out of memory [2003-05-31 12:16:51] INFO signals/signal_int_handler Shutdown requested... ehm, befor i get this message i remove the password f...
2004 Aug 06
0
trouble connecting to icecast2/ices
...flush: Too many samples in current page (89152) [2002-06-06 14:27:55] DBUG encode/encode_dataout Forcing flush: Too many samples in current page (90176) [2002-06-06 14:27:55] DBUG encode/encode_dataout Forcing flush: Too many samples in current page (91200) [2002-06-06 14:30:11] INFO signals/signal_int_handler Shutdown requested... [2002-06-06 14:30:11] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down [2002-06-06 14:30:11] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down [2002-06-06 14:30:11] DBUG reencode/reencode_clear Clearing reenco...
2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...- if ( argc > 0 && sscanf(argv[0], "%d", &cpuid) != 1 ) - cpuid = -1; - - if ( cpuid >= max_cpu_nr ) - cpuid = -1; + if ( argc > 0 ) + parse_cpuid(argv[0], &cpuid); if ( cpuid < 0 ) { @@ -338,10 +360,10 @@ static void signal_int_handler(int signo goto out; } - if ( gettimeofday(&tv, NULL) == -1 ) + if ( gettimeofday(&tv, NULL) ) { fprintf(stderr, "failed to get timeofday\n"); - goto out ; + goto out; } usec_end = tv.tv_sec * 1000000UL + tv.tv_usec; @@ -541,7...
2005 May 22
1
Problems with Ices
...itialised resampler for 1 channels, from 44100 Hz to 22050 Hz [2005-05-22 10:11:26] DBUG encode/encode_clear Clearing encoder engine [2005-05-22 10:11:26] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality 0.000000 [2005-05-22 10:11:44] INFO signals/signal_int_handler Shutdown requested... [2005-05-22 10:11:44] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down [2005-05-22 10:11:44] DBUG encode/encode_clear Clearing encoder engine [2005-05-22 10:11:44] DBUG input/input_loop An instance died, removing it [2005-05-22 10:11:44] DB...
2005 May 22
2
Problems with Ices
I am having problems getting Ices to work with ALSA. If I use arecord (arecord -D plughw:0,0 output.wav) I can record the input from my microphone into a file. The playback works perfectly. However, if I use Ices with the same values I hear nothing on the receiving end of my broadcast (although I can connect to it). In order to do a further test, I setup a <savefile> tag in my