ocaml-toplevel-android / jni / start.c

Diff from to


 JNIEXPORT jboolean JNICALL Java_jp_co_itpl_ocamlandroid_Native_start (JNIEnv *env, jclass clazz, jstring name_) {
-  LOGD("entry: prepare_stream");
+  LOGD("entry: start");
   const jbyte *name = (*env)->GetStringUTFChars(env, name_, NULL);
   if (name == NULL) {
     return JNI_FALSE;
-  pid_t parent_pgid = getpgid(0);
+  start_caml(name);
+  /*pid_t parent_pgid = getpgid(0);
   if(parent_pgid==-1) { LOGE("getpgid failed."); }
   if(fork()==0) {
   } else {
     LOGI("parent:forked caml process");
-  }
+  }*/
   (*env)->ReleaseStringUTFChars(env, name_, name);
-  LOGD("exit successful: prepare_stream");
+  LOGD("exit successful: start");
   return JNI_TRUE;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.