mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-16 01:50:54 +00:00
a little note in the .err file to indicate what's happening...
This commit is contained in:
parent
aa006d51d8
commit
0c939b5b24
@ -78,6 +78,7 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
|
|||||||
int argc = 1;
|
int argc = 1;
|
||||||
char *logfn;
|
char *logfn;
|
||||||
int logfd;
|
int logfd;
|
||||||
|
int retval;
|
||||||
|
|
||||||
logfn = malloc(strlen(conf_path)+20);
|
logfn = malloc(strlen(conf_path)+20);
|
||||||
sprintf(logfn, "%s/dropbear.err", conf_path);
|
sprintf(logfn, "%s/dropbear.err", conf_path);
|
||||||
@ -93,7 +94,9 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
|
|||||||
sprintf(argv[argc], "%d", (int)port);
|
sprintf(argv[argc], "%d", (int)port);
|
||||||
argc++;
|
argc++;
|
||||||
}
|
}
|
||||||
dropbear_main(1, argv);
|
fprintf(stderr, "starting dropbear\n");
|
||||||
|
retval = dropbear_main(1, argv);
|
||||||
|
fprintf(stderr, "dropbear finished (%d)\n", retval);
|
||||||
} else {
|
} else {
|
||||||
(*env)->SetStaticIntField(env, cl_simplesshdservice,
|
(*env)->SetStaticIntField(env, cl_simplesshdservice,
|
||||||
fid_sss_sshd_pid, pid);
|
fid_sss_sshd_pid, pid);
|
||||||
|
Loading…
Reference in New Issue
Block a user