Package jnr.posix

Examples of jnr.posix.POSIX.kill()


        int pid = RubyNumeric.num2int(args[i]);

        // FIXME: It may be possible to killpg on systems which support it.  POSIX library
        // needs to tell whether a particular method works or not
        if (pid == 0) pid = runtime.getPosix().getpid();
        checkErrno(runtime, posix.kill(processGroupKill ? -pid : pid, signal));
      }
    }
       
        return runtime.newFixnum(args.length - 1);
View Full Code Here


        int pid = RubyNumeric.num2int(args[i]);

        // FIXME: It may be possible to killpg on systems which support it.  POSIX library
        // needs to tell whether a particular method works or not
        if (pid == 0) pid = runtime.getPosix().getpid();
        checkErrno(runtime, posix.kill(processGroupKill ? -pid : pid, signal));
      }
    }
       
        return runtime.newFixnum(args.length - 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.