Michael,

   I had 15 minutes this evening to quickly hack a draft solution for you.
I posted it on Unicon's discussion page:

https://sourceforge.net/p/unicon/discussion/contributions/thread/db34541b/

Regards,
Jafar

On Thu, Nov 10, 2016 at 7:43 PM, Jeffery, Clint (jeffe...@uidaho.edu) <
jeffe...@uidaho.edu> wrote:

> Hi Michael,
>
>
> Always nice to hear from a fellow Washingtonian.
>
>
> I am aware of various alarming things being done in Unicon before, but
> have not seen code of the sort you describe.  It should be a great test of
> trap() and the posix facilities. In grepping for possible interactions, I
> noticed that the URL-reading code in the messaging facilities sets a
> SIGALRM handler to do a timeout when it attempts to connect to a web
> server, but as long as you are not simultaneously trying to open() things
> with mode "m" you should be OK.
>
>
> Cheers,
>
> Clint
>
>
> ------------------------------------------------------------
> -----------------------------------------
>
> MM> I'm writing a unicon program that needs to set a timer. Has anyone
> every written a c loadfunc for setitimer and/or getitime so that the unicon
> program can trap SIGALRM and know when the interval has expired. Thought I
> would check to see if anyone had already done it before trying to build it.
>
>   #include <sys/time.h>
>
>        int getitimer(int which, struct itimerval *curr_value);
>        int setitimer(int which, const struct itimerval *new_value,
>                      struct itimerval *old_value);
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Unicon-group mailing list
> Unicon-group@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to