delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "gilles BOURGEOIS" <gbourgeois AT yaccom DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | setitimer/SIGVTALRM error form cygwin shell. |
Date: | Mon, 30 Dec 2002 09:27:56 +0100 |
Message-ID: | <GHEDJDAGJGMFPNAOIIBHMECICAAA.gbourgeois@yaccom.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
Importance: | Normal |
X-MDRemoteIP: | 192.168.1.35 |
X-Return-Path: | gbourgeois AT yaccom DOT com |
X-MDaemon-Deliver-To: | cygwin AT cygwin DOT com |
Hello I am trying to simulate a tick timer under cygwin but it does not work : with the following code : /* Initialise timer structure */ interval.it_interval.tv_sec = 1; interval.it_interval.tv_usec = 0; interval.it_value.tv_sec = 1; interval.it_value.tv_usec = 0; /* Initialise virtual timer */ if (!sigaction (SIGVTALRM, &sigact, 0)) { if ( (err=setitimer (ITIMER_PROF, &s_Rtk_interval, NULL)) <0) {printf ("StartTimer could not setitimer %d\n",err); printf ("errno errno = %d (%s).\n", errno, strerror(errno)); exit (0); } } else { fprintf( stderr, "Erreur :%d\n", errno ); } I got the invalid argument (errno) error ?? did someone manage the use of virtual timer under cygwin? thanks gilles -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |