This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: - <lopiuh at googlemail dot com>, cygwin at cygwin dot com
- Date: Tue, 23 Dec 2014 04:37:53 +0300
- Subject: Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager
- Authentication-results: sourceware.org; auth=none
- References: <CAMhmPJ3DDmUX0x0pij-NKOnoKJhe18=EROkdhr+f3O8Zjiih2w at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, -!
> I have a script running banana after killing a process (rsync, but
> that is unimportant) through Taskmanager (End process in process tab).
> It is, that the killed process exits immediately with exitcode 0 (!)
> and the bash script itself continues, which can lead to havoc because
> not knowing something was canceled (continuing to mive directories
> etc).
> Win7, CYGWIN_NT-6.1-WOW64 Gizmo-PC 1.7.33-2(0.280/5/3) 2014-11-13
> 15:45 i686 Cygwin
> simple to reproduce:
> START script.sh
> #!/usr/bin/bash
> less some_file
> echo "result: $?" >| erg_file
> erg_file contains: result: 0 after killing less through process taskmanager
> Any idea how to solve (get the "canceled" exit code? Remember: The
> script continues like a normal finish of the command)
What do you mean by "canceled" exit code, pretty please?
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 23.12.2014, <04:37>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple