JNIEXPORT void JNICALL Java_org_zeromq_czmq_Zproc__1_1daemonize (JNIEnv *env, jclass c, jstring workdir) { char *workdir_ = (char *) (*env)->GetStringUTFChars (env, workdir, NULL); zproc_daemonize (workdir_); (*env)->ReleaseStringUTFChars (env, workdir, workdir_); }
/// // Move the current process into the background. The precise effect // depends on the operating system. On POSIX boxes, moves to a specified // working directory (if specified), closes all file handles, reopens // stdin, stdout, and stderr to the null device, and sets the process to // ignore SIGHUP. On Windows, does nothing. Returns 0 if OK, -1 if there // was an error. void QmlZprocAttached::daemonize (const QString &workdir) { zproc_daemonize (workdir.toUtf8().data()); };
/// // Move the current process into the background. The precise effect // depends on the operating system. On POSIX boxes, moves to a specified // working directory (if specified), closes all file handles, reopens // stdin, stdout, and stderr to the null device, and sets the process to // ignore SIGHUP. On Windows, does nothing. Returns 0 if OK, -1 if there // was an error. void QZproc::daemonize (const QString &workdir) { zproc_daemonize (workdir.toUtf8().data()); }