Re: Problem of this code?

1998-04-23 Thread Chung Kil Kim
I insert following line before first fcntl call lock_info.l_type = F_UNLCK but same error message print out. I reedit the code like this ... memset (lock_info, 0, sizeof (lock_info)); while (1) { ... Now no error message is print out. I guess lock_info struct must be clear(all member) before

Re: Problem of this code?

1998-04-23 Thread Glynn Clements
Chung Kil Kim wrote: I insert following line before first fcntl call lock_info.l_type = F_UNLCK but same error message print out. Yes, because you are still not using it correctly. I reedit the code like this ... memset (lock_info, 0, sizeof (lock_info)); while (1) { ... Now

Re: combo box

1998-04-23 Thread Glynn Clements
Ibrahim Haddad wrote: Sorry for bothering you with 2 mails in 1 day. I would really like to know if any one has any example of how to use a combo box in moo-tiff. i know that there are 2 library files ComboBox.h and ComboBoxP.h in the lib directory /usr/X11R6/inlcude/Xm. Doesn't Moo-Tif

Re: exit system call

1998-04-23 Thread Glynn Clements
Lai wrote: i would like to know whether there is any system call that can stop the prosess but not terminate the program. What's the difference? in the function below (part of the ping program)the program will terminate with the exit call but i would like just the current ping process