summaryrefslogtreecommitdiffstats
path: root/winsup/utils/kill.cc
Commit message (Collapse)AuthorAgeFilesLines
* * 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