summaryrefslogtreecommitdiffstats
path: root/winsup/utils/kill.cc
Commit message (Collapse)AuthorAgeFilesLines
* Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout optioncygwin-2_5_2-releaseCorinna Vinschen2016-06-231-4/+1
| | | | | | | | | | | | | | Bump GPLv2+ to GPLv3+ for some files, clarify BSD 2-clause. Everything else stays under GPLv3+. New Linking Exception exempts resulting executables from LGPLv3 section 4. Add CONTRIBUTORS file to keep track of licensing. Remove 'Copyright Red Hat Inc' comments. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix SEGV of kill -l 0Michael Kwasigroch2015-11-261-3/+3
| | | | | | | * kill.cc (strsigno): Don't call sys_sigabbrev for signal 0. (listsig): Don't call strsigno for signal 0. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* * Merge in cygwin-64bit-branch.Corinna Vinschen2013-04-231-5/+5
|
* Update copyrightsChristopher Faylor2013-01-211-1/+2
|
* Clean up whitespace.Christopher Faylor2011-12-171-14/+14
|
* * Align usage output, version output, as well as usage and versionCorinna Vinschen2011-10-101-37/+24
| | | | | | | | | option handling to use the same style throughout all Cygwin utils. Throughout use program_invocation_short_name to refer to current process name in Cygwin executables. * utils.sgml: Align documentation to above change. Add missing sections for getconf, ldd, and setmetamode. * strace.cc (proc_child): Avoid compiler warning.
* * kill.cc (main): Skip to PID loop on invalid option to handleCorinna Vinschen2009-10-121-4/+2
| | | | negative pids there.
* * cygwin/strsig.cc (__signals): New macro.Christopher Faylor2007-07-101-2/+10
| | | | | | | | | | | (sys_sigabbrev): New array of signal strings, patterned after linux. (siglist): Use __signals. * cygwin/include/cygwin/signal.h (sys_sigabbrev): Define. * cygwin/include/cygwin/version.h: Bump API minor version to 177. * utils/Makefile.in (kill.exe): Remove reliance on libiberty. * utils/kill.cc (strsigno): New function patterned after libiberty but using newly exported cygwin array.
* * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't padChristopher Faylor2005-03-081-1/+1
| | | | signal name with spaces.
* * kill (getsig): Avoid buffer overflow when generating a signal name.Christopher Faylor2005-02-271-1/+1
| | | | * strace.cc (handle_output_debug_string): Make error a little more specific.
* 2004-11-13 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-11-131-14/+22
| | | | | | | * kill.cc (forcekill): Do not pass negative pids to cygwin_internal. Check if sig == 0. Improve error messages. (main): Make pid a long long and distinguish between pids, gpids (i.e. negative pids) and Win9x pids.
* * kill.cc (listsig): NSIG includes Signal 0, so we need to avoid callingChristopher Faylor2004-05-271-1/+1
| | | | strtosigno with NSIG - 1.
* * kill.cc (get_debug_priv): New function.Corinna Vinschen2004-03-131-0/+30
| | | | (forcekill): Call get_debug_priv before trying to kill process.
* * kill.cc (main): Allow negative pids (indicates process groups).Christopher Faylor2003-09-201-3/+14
|
* * parse_pe.cc (exclusion::sort_and_check): Make error message a little moreChristopher Faylor2003-09-181-7/+7
| | | | explicit and ignore (hopefully) harmless region overlap.
* * kill.c (forcekill): Wait for process to terminate even if TerminateProcessChristopher Faylor2003-09-131-3/+4
| | | | says it failed.
* * kill.cc (forcekill): Silence some compiler warnings.Christopher Faylor2003-09-011-2/+3
|
* * Makefile.in: Display "..." when not-verbose.Christopher Faylor2003-09-011-4/+7
| | | | | * kill.cc (forcekill): Default to entered pid when pinfo fails. Issue some warnings when things don't work.
* * cygcheck.cc (usage) Add description output.Joshua Daniel Franklin2003-04-261-0/+2
|
* Add final newlines to utilsJoshua Daniel Franklin2002-09-151-1/+2
|
* * kill.cc (prog_name) New global variable.Christopher Faylor2002-05-131-7/+51
| | | | | | | | (usage) Standardize usage output. Add descriptions. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.
* * kill.cc (listsig): Display numeric id when given symbolic input.Christopher Faylor2002-05-131-1/+4
|
* * kill.cc (usage): Show new options. Allow specification of output stream.Christopher Faylor2002-05-131-3/+7
| | | | (main): Implement 'h' option.
* * Makefile.in (kill.exe): Add as a specific target.Christopher Faylor2002-05-131-25/+93
| | | | | | | | | | * kill.cc (longopts): New. (opts): Ditto. (get_sig): Accept const char * parameter. Return -1 on unknown signal. (test_for_unknown_sig): New function. (listsig): New function. (main): Use getopt_long for option parsing. Implement -l, and -s options. Use test_for_unknown_sig() to test for signal validity.
* * kill.cc (usage): Move to top of file.Christopher Faylor2002-03-111-40/+36
| | | | | (getsig): Ditto. (forcekill): Ditto.
* * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor cleanup.Christopher Faylor2001-10-081-22/+15
|
* Update copyright.Christopher Faylor2001-03-181-1/+1
|
* * kill.cc (forcekill): Use dwProcessId when opening a process, not the CygwinChristopher Faylor2001-03-181-1/+1
| | | | pid.
* * kill.cc (main): Return 1 in case of errors.Corinna Vinschen2000-11-021-1/+3
|
* * ps.cc (main): Change order of reporting slightly so that windows pids areChristopher Faylor2000-10-091-1/+1
| | | | | | | | more obvious. * strace.cc (add_child): Just add child's pid directly. (remove_child): No need to close the child process pid since ContinueDebugEvent does that automatically. (proc_child): Ditto for child thread.
* * kill.cc (main): Change behavior of -f so that it will force the killing of aChristopher Faylor2000-09-131-6/+16
| | | | | | cygwin process after waiting 2 tenths of a second for it to terminate. (forcekill): Add an extra argument determining whether to wait for the process to exit.
* * kill.c (main): Avoid skipping next argument when a signal number isChristopher Faylor2000-08-291-1/+1
| | | | | specified. * Makefile.in: Always clean dumper.exe.
* * Makefile.in: Add dumper.exe target and associated mechanisms for building it.Christopher Faylor2000-08-241-1/+1
| | | | | | | * dumper.cc: New file. * dumper.h: New file. * module_info.cc: New file. * parse_pe.cc: New file.
* * kill.cc (main): Add '-f' option to force termination of a process.Christopher Faylor2000-07-291-15/+47
| | | | | | | | | (forcekill): New function. * ps.cc (main): Add '-W' option to list Windows pids as well as Cygwin pids. (dummyprocessmodules): New function. (GetModuleFileNameEx95): New function. (init_win): New function. (to_time_t): New function.
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+85