Package jnr.constants.platform

Examples of jnr.constants.platform.Signal.intValue()


            public void handle(int signal) {
                fired.set(true);
            }
        });
       
        posix.kill(posix.getpid(), s.intValue());
        waitUntilTrue(fired, 200);
        Assert.assertTrue(fired.get());
    }
   
    @Test
View Full Code Here


            }
        });
       
        // have to use native here; no abstraction for kill in pure Java
        // TODO: sun.misc.Signal.raise can be used to kill current pid
        posix.kill(posix.getpid(), s.intValue());

        waitUntilTrue(fired, 200);
        Assert.assertTrue(fired.get());
    }
}
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.