[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[LI] How pass parameters to function through alarm ......



Hi all,

I am working on Redhat Linux 6.0 & C.

I am using alarm system call..

  signal(SIGALRM,fun);/* fun is function 
                              adrress*/
  alarm(2);
  for( ; ;)




fun(int i)
{
printf("Passed Val Is: %d\n",i);
}


My prblem is how to pass a value(int parameter) to function(fun) which set in signal alarm?????


           Thax...
                   Best Regards,
                            Arun.K.Desai.



LYCOShop is now open. On your mark, get set, SHOP!!!
http://shop.lycos.com/
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.