hemanth
05-23-2002, 06:51 AM
hello guys,
well i'm involved with an issue of porting an application onto linux from SCO.on the SCO system i hv used setpgrp to make a child process a daemon n i as child can comm with the parent whilst in linux with setpgrp the process doesn't become a daemon.i hv used the daemon(1,1) command but there a problem here.i don't hv the parent id.getppid() returns 1(id of init process right?).so i'm having to pass the parent id to the child.is there no other go with which the child process can get the parent id....like maybe some command or something....do post what u feel abt this guys n if u need some more info u can always mail me.
i'm a new member n hope i get some replies.
cheers.
well i'm involved with an issue of porting an application onto linux from SCO.on the SCO system i hv used setpgrp to make a child process a daemon n i as child can comm with the parent whilst in linux with setpgrp the process doesn't become a daemon.i hv used the daemon(1,1) command but there a problem here.i don't hv the parent id.getppid() returns 1(id of init process right?).so i'm having to pass the parent id to the child.is there no other go with which the child process can get the parent id....like maybe some command or something....do post what u feel abt this guys n if u need some more info u can always mail me.
i'm a new member n hope i get some replies.
cheers.