Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!uwm.edu!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!ycy From: ycy@walt.cc.utexas.edu (Joseph Yip) Newsgroups: comp.unix.questions Subject: signal(), execl() inside a SunView program Message-ID: <28158@ut-emx.UUCP> Date: 13 Apr 90 19:04:41 GMT Sender: news@ut-emx.UUCP Reply-To: ycy@walt.cc.utexas.edu (Joseph Yip) Distribution: usa Organization: The University of Texas at Austin, Austin, Texas Lines: 22 I am running a program using SunView functions, like window_create(), ... As I was reading the SunView manual, I noticed a section telling us that one should not use signal(), seitimer(), alarm(), ... inside SunView because they will cause problems and we should use functions from Notifier instead. I have a program using sigal() and etc. to do serial communication. I do not want to modify it. So, I am thinking of using pipe() and fork() functions inside my SunView program and then issue a execl() call to run my serial communication program. I understand that the child program after fork() will inherit all its parent's stuff. What about the the program called by execl()? Will that be a problem because the serial communication program is called by a SunView program? I was trying using the socket function and the two programs communicate well. Internally, pipe() uses sockets. So, I believe it should work too. Right? Thank you Joseph Yip