|
poepn or system function call executed by a background process
hi all,
am developing a server which runs as a background process without any controlling terminal...
when there is any request from client, server should make use of popen or system function call to check whether a process is running or not and send back the status to the client ...
when the server is run in foreground with controlling terminal everything is fine, but when the same server is run as a background process without any controlling terminal i have the following problem encountered
during the popen call or system call program is receiving SIGSEGV
and from truss of the program following is received
ioctl(2, TCGETA, 0xFFBFE4C4) Err#25 ENOTTY
4342: Incurred fault #6, FLTBOUNDS %pc = 0xFF1B44E4
4342: siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
4342: Received signal #11, SIGSEGV [caught]
4342: siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
any pointers on this ?
is there any way to handle this ?
thanks for your help in advance ...
|