This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setitimer/SIGVTALRM error form cygwin shell.


Cygwin supports ITIMER_REAL only.

Sergey Okhapkin
Somerset, NJ
----- Original Message -----
From: "gilles BOURGEOIS" <gbourgeois@yaccom.com>
To: <cygwin@cygwin.com>
Sent: Monday, December 30, 2002 3:27 AM
Subject: setitimer/SIGVTALRM error form cygwin shell.


> 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/
>



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]