
URGENT : Help needed with system()/fork() call
Quote:
>Hi,
>I want to execute a shell script from my c program when some conditions
>are true and have tried using system() and execl() with fork(). However
>the program is a multithreaded one and upn execution it gives
>segmentation fault and dumps core. Debug of the core file indicates it
>to be coming from a library running in a different thread.
>Please suggest me how else can I call the script or how can I take care
>of this multithreading problem.
Unfortunately C has no support for multithreading (or execl() or fork()
for that matter). You'll probably have better luck asking the Unix experts
in comp.unix.programmer or a newsgroup relating to your particular OS.
There is also a threads related newsgroup comp.programming.threads.
--
-----------------------------------------
-----------------------------------------