Re: Calling ssh from C-Program with execvp
- From: Manfred Rebentisch <mrebentisch@xxxxxxxxxxx>
- Date: Mon, 22 Jan 2007 10:56:13 +0100
Hallo,
I found the reason for my problem. After I put the lines:
if( open("/dev/null", O_RDONLY) != 0) {
syslog(LOG_ERR, "failed to open /dev/null");
exit(EXIT_FAILURE);
}
before the call of execvp() and after closing STDIN anything runs!
Thank you to all!
Manfred
.
- References:
- Calling ssh from C-Program with execvp
- From: Manfred Rebentisch
- Re: Calling ssh from C-Program with execvp
- From: Richard E. Silverman
- Calling ssh from C-Program with execvp
- Prev by Date: Re: Calling ssh from C-Program with execvp
- Next by Date: same ssh connection on both sides?
- Previous by thread: Re: Calling ssh from C-Program with execvp
- Next by thread: same ssh connection on both sides?
- Index(es):