Commit Graph

1353 Commits

Author SHA1 Message Date
Matt Green 00a339a2f1 Merge pull request #43 from chr4/signal_flag
Signal flag
2017-04-03 12:04:52 -04:00
Chris Aumann 264ec282d6 Use a tuple to match scenarios 2017-04-02 21:28:00 +02:00
Chris Aumann 4763de3790 Re-add --kill flag for compatibility
--kill translates to --signal SIGKILL
2017-04-02 21:21:30 +02:00
Chris Aumann 627f828b3c Rename wait_process() to signal_process() 2017-04-02 21:21:30 +02:00
Chris Aumann f5f65c3a28 Add --signal documentation to doc/* 2017-04-02 21:21:30 +02:00
Chris Aumann d5da94fcaf Add check for conflicting --signal and --postpone arguments 2017-04-02 21:21:30 +02:00
Chris Aumann 14941c89d2 Add SIGHUP example to README 2017-04-02 21:21:30 +02:00
Chris Aumann c98d0e6cfd Decouple --restart and --signal, so they both make sense
This change takes account of the following four use cases:

1. Make sure the previous run was ended, then run the command again (default)
2. Just send a specified signal to the child, do nothing more (--signal given)
3. Send SIGTERM to the child, wait for it to exit, then run the command again (--restart given)
4. Send a specified signal to the child, wait for it to exit, then run the command again (--restart and --signal given)
2017-04-02 21:21:30 +02:00
Chris Aumann 56ddfcbaee Apply rustfmt-0.8.1 2017-04-02 21:21:30 +02:00
Chris Aumann 3a5ff290d5 Use a more idiomatic way to set --signal 2017-04-02 21:19:53 +02:00
Chris Aumann debfafb47b Adapt README to --signal option 2017-04-02 21:19:53 +02:00
Chris Aumann a2f6b0013f Add windows compatibility 2017-04-02 21:19:53 +02:00
Chris Aumann 0a445c9f76 Move convert_to_libc() method to signal.rs 2017-04-02 21:19:53 +02:00
Chris Aumann 4adde457dd Actually use signal specified in --signal option 2017-04-02 21:19:53 +02:00
Chris Aumann 382981e22d Add more signals to SigSet mask 2017-04-02 21:19:53 +02:00
Chris Aumann eebe966b50 Remove deprecated signal functions 2017-04-02 21:19:53 +02:00
Chris Aumann 24e9b0c1c5 Migrate to nix::sys::signal::Signal 2017-04-02 21:19:52 +02:00
Chris Aumann 68caf04269 First commit to add a generic --signal flag 2017-04-02 21:19:52 +02:00
Matt Green ffc68fb4df Merge pull request #44 from chr4/before_exec
Use before_exec as process_exec landed in stable
2017-03-31 12:31:53 -04:00
Matt Green 0cd2a8f037 Merge pull request #46 from ootoovak/patch-1
Fix headers in Readme file.
2017-03-31 12:26:43 -04:00
Samson Ootoovak ee5f7509b5 Fix headers in Readme file.
Just added spaces so the markdown recognises the headers.
2017-03-27 21:56:06 +13:00
Chris Aumann f62c3724b2 Use before_exec as process_exec landed in stable 2017-03-24 17:11:24 +01:00
Matt Green 4fffb534b6 Fix atrocious spacing in Makefile 2017-02-07 10:30:47 -05:00
Matt Green 9e68f0c063 Add Homebrew + Cargo targets 2017-02-06 18:15:51 -05:00
Matt Green 0e371d1c56 Update docs for 1.7.0 2017-02-05 13:29:38 -05:00
Matt Green 5427f9fe93 Add category 2017-02-05 13:18:22 -05:00
Matt Green 125e7eb7c8 rustfmt & clippy fixes 2017-02-04 16:26:59 -05:00
Matt Green e16a6b3a24 Support watching multiple paths 2017-02-04 16:18:02 -05:00
Matt Green cd083ef650 Bump to 1.7.0 2017-02-04 14:54:14 -05:00
Matt Green 53c1f39919 Load + handle multiple .gitignore files in project dir 2017-02-04 14:53:27 -05:00
Matt Green b2b0a60ca5 Add -1 option for integration testing, closes #35 2017-01-27 15:27:44 -05:00
Matt Green 0d5de7c4da rustfmt 2017-01-27 13:13:37 -05:00
Matt Green c3e7cf00d5 cargo update 2017-01-27 13:13:08 -05:00
Matt Green ebcb5976ba Use globset for ignore matching; closes #14 and #23 2017-01-27 13:00:13 -05:00
Matt Green ed474ccfe3 Update Homebrew instructions 2017-01-19 11:35:38 -05:00
Matt Green fd2d6e364a Add -k to support sending SIGKILL 2017-01-16 14:18:38 -05:00
Matt Green 6b7351d45b Remove kill/wait tests as process handling is async now 2016-12-20 13:42:39 -05:00
Matt Green dddc1e8886 Fix Windows warnings 2016-12-20 13:25:08 -05:00
Matt Green 09448cd91e Fix reap() hanging when child processes are still running 2016-12-20 13:21:24 -05:00
Matt Green 171132a722 rustfmt & clippy fixes 2016-12-20 12:20:21 -05:00
Matt Green 2dd2e72214 Update dependencies 2016-12-20 11:48:45 -05:00
Matt Green b2c809c87a SIGCHLD handling 2016-12-20 11:44:18 -05:00
Matt Green a925cb356a Fix sending SIGKILL by default when restarting processes 2016-12-19 15:36:59 -05:00
Matt Green 9c65e816da Add -k option to send SIGKILL instead of SIGTERM; closes #31 2016-12-19 11:37:20 -05:00
Matt Green 787c31040c Remask received signal after re-raising it 2016-12-15 09:41:10 -05:00
Matt Green 154c23a5a4 Propagate SIGTSTP/SIGCONT to children 2016-12-14 20:19:58 -05:00
Matt Green ef37a9fb97 Add example that uses --; closes #28 2016-12-14 19:45:31 -05:00
Matt Green 8797b35926 Update README 2016-11-23 13:11:25 -05:00
Matt Green ceda4a553c 1.5.0 2016-11-23 13:01:51 -05:00
Matt Green 54baf4e384 Add process::spawn function 2016-11-23 12:59:56 -05:00