]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/modify.c
Do not set op->o_private (to the process' pid). Only abandon needed it.
[openldap] / servers / slapd / back-shell / modify.c
index 248a64dc45d8602728c821d1b78558b5f2c1e2a5..906ee6093c8ab819339c172bd480383587ddd3f0 100644 (file)
@@ -50,8 +50,7 @@ shell_back_modify(
                return -1;
        }
 
-       if ( (op->o_private = (void *) forkandexec( si->si_modify, &rfp, &wfp ))
-           == (void *) -1 ) {
+       if ( forkandexec( si->si_modify, &rfp, &wfp ) == (pid_t)-1 ) {
                send_ldap_error( op, rs, LDAP_OTHER,
                    "could not fork/exec" );
                return( -1 );