Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 438 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 438 Bytes

alarm

Sets an alarm for the underlying process.

This ensures that, without malicious interception, the process should automatically die after the specified number of seconds.

This is automatically transferred to all child processes and across session and process group boundaries, so there is no need to do anything about child processes.

usage

$ ./alarm 5 /bin/sh -c "echo hello; sleep 6; echo nope"
hello
<exited>